From 3b5f7bd7566a8be667e82fba4ce342e94a4fbb3b Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 20 Apr 2014 15:13:31 +0200 Subject: [PATCH] adjustments of idle connection check --- application/core/ManiaControl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 4dad1b79..cd75023c 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -127,8 +127,8 @@ class ManiaControl implements CommandListener, TimerListener { $this->commandManager->registerCommandListener('restart', $this, 'command_Restart', true); $this->commandManager->registerCommandListener('shutdown', $this, 'command_Shutdown', true); - //Check connection every 3 minutes - $this->timerManager->registerTimerListening($this, 'checkConnection', 1000 * 180); + //Check connection every 30 seconds + $this->timerManager->registerTimerListening($this, 'checkConnection', 1000 * 30); } /** @@ -139,6 +139,7 @@ class ManiaControl implements CommandListener, TimerListener { public function checkConnection($time) { if ($this->client->getIdleTime() > 180) { $this->client->getServerName(); + var_dump("test"); } }