improved error check on shutdown

This commit is contained in:
Steffen Schröder committed 2014-05-03 22:26:49 +02:00
1 parent 334892c287
commit ca7d5863bf
2 files changed
+15 -9

No files matched your search

+1 -5
View File
@@ -302,11 +302,7 @@ class ManiaControl implements CommandListener, TimerListener {
}
}
// Check and Trigger Fatal Errors
$error = error_get_last();
if ($error && ($error['type'] & E_FATAL)) {
$this->errorHandler->handleError($error['type'], $error['message'], $error['file'], $error['line']);
}
$this->errorHandler->handleShutdown();
// Disable Garbage Collector
$this->collectGarbage();