From 2603325d2adeec38b35bbe0f0bdc0917f719b3ae Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 19 Apr 2014 00:42:18 +0200 Subject: [PATCH] check conenction idle every 3 minutes --- application/core/ManiaControl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index a097c415..554226f5 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -126,7 +126,7 @@ class ManiaControl implements CommandListener, TimerListener { $this->commandManager->registerCommandListener('restart', $this, 'command_Restart', true); $this->commandManager->registerCommandListener('shutdown', $this, 'command_Shutdown', true); - //Check connection every 2 minutes + //Check connection every 3 minutes $this->timerManager->registerTimerListening($this, 'checkConnection', 1000 * 180); } @@ -135,7 +135,7 @@ class ManiaControl implements CommandListener, TimerListener { * @param $time */ public function checkConnection($time){ - if($this->client->getIdleTime() > 300){ + if($this->client->getIdleTime() > 180){ $this->client->getServerName(); } }