mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Merge branch 'release/3.0' into release/3.1
This commit is contained in:
commit
e6f53cc56b
@ -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);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ abstract class AsyncTask extends Collectable{
|
||||
}
|
||||
|
||||
public function isCrashed() : bool{
|
||||
return $this->crashed;
|
||||
return $this->crashed or $this->isTerminated();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user