cought fatal exception
This commit is contained in:
parent
98b146f51d
commit
5dcc8e865c
@ -327,7 +327,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
||||
} catch(FatalException $e) {
|
||||
//TODO remove
|
||||
if ($this->errorHandler) {
|
||||
$this->errorHandler->triggerDebugNotice("Fatal Exception: " . $e->getMessage() . " tracestring " . $e->getTraceAsString());
|
||||
$this->errorHandler->triggerDebugNotice("Fatal Exception: " . $e->getMessage() . " Trace: " . $e->getTraceAsString());
|
||||
}
|
||||
$this->quit($e->getMessage());
|
||||
}
|
||||
@ -394,9 +394,17 @@ class ManiaControl implements CommandListener, TimerListener {
|
||||
$this->client->enableCallbacks(true);
|
||||
|
||||
// Wait for server to be ready
|
||||
try {
|
||||
if (!$this->server->waitForStatus(4)) {
|
||||
trigger_error("Server couldn't get ready!", E_USER_ERROR);
|
||||
}
|
||||
} catch(FatalException $e) {
|
||||
//TODO remove
|
||||
if ($this->errorHandler) {
|
||||
$this->errorHandler->triggerDebugNotice("Fatal Exception: " . $e->getMessage() . " Trace: " . $e->getTraceAsString());
|
||||
}
|
||||
$this->quit($e->getMessage());
|
||||
}
|
||||
|
||||
// Connect finished
|
||||
$this->log("Server Connection successfully established!");
|
||||
|
Loading…
Reference in New Issue
Block a user