Merge branch 'release/3.2'

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

View File

@ -308,7 +308,7 @@ class AsyncPool{
} }
$this->removeTask($task); $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->logger->critical("Could not execute asynchronous task " . (new \ReflectionClass($task))->getShortName() . ": Task crashed");
$this->removeTask($task, true); $this->removeTask($task, true);
} }

View File

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