mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +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;
|
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(){
|
public function cancel(){
|
||||||
try{
|
try{
|
||||||
if(!$this->isCancelled()){
|
if(!$this->isCancelled()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user