Merge branch 'next-minor' into next-major

This commit is contained in:
Dylan K. Taylor
2022-08-25 19:27:29 +01:00
16 changed files with 94 additions and 32 deletions

View File

@ -56,7 +56,9 @@ abstract class Worker extends \Worker{
$this->isKilled = true;
if(!$this->isShutdown()){
while($this->unstack() !== null);
$this->synchronized(function() : void{
while($this->unstack() !== null);
});
$this->notify();
$this->shutdown();
}