improved shutdown
This commit is contained in:
parent
7c4c18535f
commit
b5d781076d
@ -276,7 +276,6 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
if ($message) {
|
if ($message) {
|
||||||
$this->log($message);
|
$this->log($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -414,7 +413,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
// Wait for server to be ready
|
// Wait for server to be ready
|
||||||
try {
|
try {
|
||||||
if (!$this->server->waitForStatus(4)) {
|
if (!$this->server->waitForStatus(4)) {
|
||||||
trigger_error("Server couldn't get ready!", E_USER_ERROR);
|
$this->quit("Server couldn't get ready!");
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// TODO remove
|
// TODO remove
|
||||||
|
@ -25,9 +25,7 @@ class Server implements CallbackListener {
|
|||||||
/*
|
/*
|
||||||
* Public Properties
|
* Public Properties
|
||||||
*/
|
*/
|
||||||
/**
|
/** @var Config $config */
|
||||||
* @var Config $config
|
|
||||||
*/
|
|
||||||
public $config = null;
|
public $config = null;
|
||||||
public $index = -1;
|
public $index = -1;
|
||||||
public $ip = null;
|
public $ip = null;
|
||||||
@ -259,7 +257,7 @@ class Server implements CallbackListener {
|
|||||||
if (!$dataDirectory) {
|
if (!$dataDirectory) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return "{$dataDirectory}Maps".DIRECTORY_SEPARATOR;
|
return "{$dataDirectory}Maps" . DIRECTORY_SEPARATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user