CheckTestCompletionTask: use TaskHandler->cancel()

This commit is contained in:
Dylan K. Taylor 2020-07-08 10:57:20 +01:00
parent 75e0844ff5
commit 303344783a

View File

@ -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()){