Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2021-05-21 01:27:35 +01:00
4 changed files with 12 additions and 9 deletions

View File

@ -47,7 +47,7 @@ abstract class Worker extends \Worker{
public function quit() : void{
$this->isKilled = true;
if($this->isRunning()){
if(!$this->isShutdown()){
while($this->unstack() !== null);
$this->notify();
$this->shutdown();