From 8d5db2f0a9e8ce0d2d166bf1ec561d1be90354b4 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 15 Feb 2014 21:48:23 +0100 Subject: [PATCH] small fix --- application/core/ManiaControl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index de4a2aac..6bf09c79 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -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));