mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
CommandReader: use PTHREADS_INHERIT_NONE
probably not necessary to register autoloader, but just in case...
This commit is contained in:
parent
be0e85dfae
commit
c3822b795c
@ -1434,7 +1434,7 @@ class Server{
|
||||
$this->tickSleeper->addNotifier($consoleNotifier, function() : void{
|
||||
$this->checkConsole();
|
||||
});
|
||||
$this->console->start();
|
||||
$this->console->start(PTHREADS_INHERIT_NONE);
|
||||
|
||||
$version = new VersionString($this->getPocketMineVersion());
|
||||
|
||||
|
@ -49,6 +49,8 @@ class CommandReader extends Thread{
|
||||
if(extension_loaded("readline") and !isset($opts["disable-readline"]) and !$this->isPipe(STDIN)){
|
||||
$this->type = self::TYPE_READLINE;
|
||||
}
|
||||
|
||||
$this->setClassLoader();
|
||||
}
|
||||
|
||||
public function shutdown(){
|
||||
@ -168,6 +170,8 @@ class CommandReader extends Thread{
|
||||
}
|
||||
|
||||
public function run(){
|
||||
$this->registerClassLoader();
|
||||
|
||||
if($this->type !== self::TYPE_READLINE){
|
||||
$this->initStdin();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user