mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Merge remote-tracking branch 'origin/release/3.3' into release/3.4
This commit is contained in:
commit
c90d1faa81
@ -2255,6 +2255,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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user