mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
TaskHandler: remove incorrect internal warning
this is perfectly fine to use, and preferable to getting a cyclic ref to the scheduler. TaskScheduler->cancelTask() does pretty much the exact same thing, and the scheduler internals are designed to deal with this anyway.
This commit is contained in:
parent
ab48d85c35
commit
f0182c9996
@ -135,10 +135,6 @@ class TaskHandler{
|
||||
return $this->period;
|
||||
}
|
||||
|
||||
/**
|
||||
* WARNING: Do not use this, it's only for internal use.
|
||||
* Changes to this function won't be recorded on the version.
|
||||
*/
|
||||
public function cancel(){
|
||||
try{
|
||||
if(!$this->isCancelled()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user