mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
AsyncPool: remove now-unnecessary isTerminated() call
This commit is contained in:
parent
5a7e575c3a
commit
87f458f9bd
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user