check conenction idle every 3 minutes

This commit is contained in:
kremsy 2014-04-19 00:42:18 +02:00 committed by Steffen Schröder
parent c7abd69caa
commit 2603325d2a

View File

@ -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();
}
}