Merge branch 'release/3.0' into release/3.1

This commit is contained in:
Dylan K. Taylor 2018-08-03 20:07:46 +01:00
commit e6f53cc56b
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ class AsyncPool{
}
$this->removeTask($task);
}elseif($task->isTerminated() or $task->isCrashed()){
}elseif($task->isCrashed()){
$this->logger->critical("Could not execute asynchronous task " . (new \ReflectionClass($task))->getShortName() . ": Task crashed");
$this->removeTask($task, true);
}

View File

@ -80,7 +80,7 @@ abstract class AsyncTask extends Collectable{
}
public function isCrashed() : bool{
return $this->crashed;
return $this->crashed or $this->isTerminated();
}
/**