mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +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 */
|
/** @var \Threaded */
|
||||||
protected $logStream;
|
protected $logStream;
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
protected $shutdown;
|
protected $shutdown = false;
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
protected $logDebug;
|
protected $logDebug;
|
||||||
/** @var MainLogger */
|
/** @var MainLogger */
|
||||||
@ -344,7 +344,6 @@ class MainLogger extends \AttachableThreadedLogger{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function run(){
|
public function run(){
|
||||||
$this->shutdown = false;
|
|
||||||
$logResource = fopen($this->logFile, "ab");
|
$logResource = fopen($this->logFile, "ab");
|
||||||
if(!is_resource($logResource)){
|
if(!is_resource($logResource)){
|
||||||
throw new \RuntimeException("Couldn't open log file");
|
throw new \RuntimeException("Couldn't open log file");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user