mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +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();
|
$test = $this->plugin->getCurrentTest();
|
||||||
if($test === null){
|
if($test === null){
|
||||||
if(!$this->plugin->startNextTest()){
|
if(!$this->plugin->startNextTest()){
|
||||||
$this->plugin->getScheduler()->cancelTask($this->getHandler()->getTaskId());
|
$this->getHandler()->cancel();
|
||||||
$this->plugin->onAllTestsCompleted();
|
$this->plugin->onAllTestsCompleted();
|
||||||
}
|
}
|
||||||
}elseif($test->isFinished() or $test->isTimedOut()){
|
}elseif($test->isFinished() or $test->isTimedOut()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user