mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Fixed MainLogger
This commit is contained in:
parent
eaa42f8449
commit
f20d5b2c69
@ -216,8 +216,11 @@ class MainLogger extends \AttachableThreadedLogger{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strlen($this->logStream) > 0){
|
if($this->logStream->count() > 0){
|
||||||
fwrite($this->logResource, $this->logStream);
|
while($this->logStream->count() > 0){
|
||||||
|
$chunk = $this->logStream->shift();
|
||||||
|
fwrite($this->logResource, $chunk);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose($this->logResource);
|
fclose($this->logResource);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user