mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 23:44:17 +00:00
CheckTestCompletionTask: use TaskHandler->cancel()
This commit is contained in:
parent
75e0844ff5
commit
303344783a
@ -38,7 +38,7 @@ class CheckTestCompletionTask extends Task{
|
||||
$test = $this->plugin->getCurrentTest();
|
||||
if($test === null){
|
||||
if(!$this->plugin->startNextTest()){
|
||||
$this->plugin->getScheduler()->cancelTask($this->getHandler()->getTaskId());
|
||||
$this->getHandler()->cancel();
|
||||
$this->plugin->onAllTestsCompleted();
|
||||
}
|
||||
}elseif($test->isFinished() or $test->isTimedOut()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user