Moved network check out of level, added server killer for long stops

This commit is contained in:
Shoghi Cervantes
2015-06-05 11:46:33 +02:00
parent a53b041984
commit 6e69e15dfd
4 changed files with 42 additions and 4 deletions

View File

@ -67,6 +67,7 @@ namespace {
namespace pocketmine {
use pocketmine\utils\Binary;
use pocketmine\utils\MainLogger;
use pocketmine\utils\ServerKiller;
use pocketmine\utils\Terminal;
use pocketmine\utils\Utils;
use pocketmine\wizard\Installer;
@ -469,6 +470,10 @@ namespace pocketmine {
$thread->quit();
}
$killer = new ServerKiller();
$killer->start();
$killer->detach();
$logger->shutdown();
$logger->join();