mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
MainLogger: initialize shutdown field in the conventional manner
this avoids uninitialized uses
This commit is contained in:
parent
acaa0e33b0
commit
305c63ba4d
@ -61,7 +61,7 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
/** @var \Threaded */
|
||||
protected $logStream;
|
||||
/** @var bool */
|
||||
protected $shutdown;
|
||||
protected $shutdown = false;
|
||||
/** @var bool */
|
||||
protected $logDebug;
|
||||
/** @var MainLogger */
|
||||
@ -344,7 +344,6 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
}
|
||||
|
||||
public function run(){
|
||||
$this->shutdown = false;
|
||||
$logResource = fopen($this->logFile, "ab");
|
||||
if(!is_resource($logResource)){
|
||||
throw new \RuntimeException("Couldn't open log file");
|
||||
|
Loading…
x
Reference in New Issue
Block a user