This commit is contained in:
Shoghi Cervantes 2015-05-04 17:53:48 +02:00
parent d9a9808844
commit 5ec4b3f46f

View File

@ -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?
}
}
}
}