AsyncPool: remove now-unnecessary isTerminated() call

This commit is contained in:
Dylan K. Taylor 2018-08-03 20:07:37 +01:00
parent 5a7e575c3a
commit 87f458f9bd

View File

@ -295,7 +295,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);
} }