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