mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
"Fixed" #2982
This commit is contained in:
parent
d9a9808844
commit
5ec4b3f46f
@ -2188,7 +2188,11 @@ class Server{
|
||||
$this->tick();
|
||||
$next = $this->nextTick - 0.001;
|
||||
if($next > microtime(true)){
|
||||
time_sleep_until($next);
|
||||
try{
|
||||
time_sleep_until($next);
|
||||
}catch(\Exception $e){
|
||||
//Sometimes $next is less than the current time. High load?
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user