CommandReader: fix notifier race condition crash, don't start self in constructor

self-start is extremely annoying!
This commit is contained in:
Dylan K. Taylor 2018-05-09 20:01:16 +01:00
parent 72690ea7f5
commit be0e85dfae
2 changed files with 1 additions and 2 deletions

View File

@ -1434,6 +1434,7 @@ class Server{
$this->tickSleeper->addNotifier($consoleNotifier, function() : void{
$this->checkConsole();
});
$this->console->start();
$version = new VersionString($this->getPocketMineVersion());

View File

@ -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(){