small fix

This commit is contained in:
kremsy 2014-02-15 21:48:23 +01:00 committed by Steffen Schröder
parent 074918aba6
commit 8d5db2f0a9

View File

@ -271,11 +271,11 @@ class ManiaControl implements CommandListener {
public function run() {
$this->log('Starting ManiaControl v' . self::VERSION . '!');
// Connect to server
$this->connect();
// Register shutdown handler
register_shutdown_function(array($this, 'handleShutdown'));
// Connect to server
$this->connect();
// OnInit callback
$this->callbackManager->triggerCallback(CallbackManager::CB_MC_ONINIT, array(CallbackManager::CB_MC_ONINIT));