mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
CommandReader: fix notifier race condition crash, don't start self in constructor
self-start is extremely annoying!
This commit is contained in:
parent
72690ea7f5
commit
be0e85dfae
@ -1434,6 +1434,7 @@ class Server{
|
||||
$this->tickSleeper->addNotifier($consoleNotifier, function() : void{
|
||||
$this->checkConsole();
|
||||
});
|
||||
$this->console->start();
|
||||
|
||||
$version = new VersionString($this->getPocketMineVersion());
|
||||
|
||||
|
@ -49,8 +49,6 @@ class CommandReader extends Thread{
|
||||
if(extension_loaded("readline") and !isset($opts["disable-readline"]) and !$this->isPipe(STDIN)){
|
||||
$this->type = self::TYPE_READLINE;
|
||||
}
|
||||
|
||||
$this->start();
|
||||
}
|
||||
|
||||
public function shutdown(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user