Merge branch 'release/3.4'

This commit is contained in:
Dylan K. Taylor 2018-11-25 14:36:20 +00:00
commit 4698c723bd

View File

@ -2288,6 +2288,12 @@ class Server{
$this->forceShutdown(); $this->forceShutdown();
$this->isRunning = false; $this->isRunning = false;
//Force minimum uptime to be >= 120 seconds, to reduce the impact of spammy crash loops
$spacing = ((int) \pocketmine\START_TIME) - time() + 120;
if($spacing > 0){
sleep($spacing);
}
@Utils::kill(getmypid()); @Utils::kill(getmypid());
exit(1); exit(1);
} }