mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Fixed ServerKiller always killing on shutdown on single-core machines, close #170
This commit is contained in:
@@ -491,6 +491,7 @@ namespace pocketmine {
|
|||||||
|
|
||||||
$killer = new ServerKiller(8);
|
$killer = new ServerKiller(8);
|
||||||
$killer->start();
|
$killer->start();
|
||||||
|
usleep(10000); //Fixes ServerKiller not being able to start on single-core machines
|
||||||
|
|
||||||
$erroredThreads = 0;
|
$erroredThreads = 0;
|
||||||
foreach(ThreadManager::getInstance()->getAll() as $id => $thread){
|
foreach(ThreadManager::getInstance()->getAll() as $id => $thread){
|
||||||
|
Reference in New Issue
Block a user