Merge remote-tracking branch 'origin/stable'

This commit is contained in:
Dylan K. Taylor 2021-02-04 16:45:34 +00:00
commit 7684dc03fa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -59,8 +59,10 @@ final class MainLoggerThread extends \Thread{
}
public function shutdown() : void{
$this->shutdown = true;
$this->notify();
$this->synchronized(function() : void{
$this->shutdown = true;
$this->notify();
});
$this->join();
}
@ -90,7 +92,9 @@ final class MainLoggerThread extends \Thread{
while(!$this->shutdown){
$this->writeLogStream($logResource);
$this->synchronized(function() : void{
$this->wait();
if(!$this->shutdown){
$this->wait();
}
});
}