adjustments of idle connection check
This commit is contained in:
parent
40a0230b21
commit
3b5f7bd756
@ -127,8 +127,8 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
$this->commandManager->registerCommandListener('restart', $this, 'command_Restart', true);
|
$this->commandManager->registerCommandListener('restart', $this, 'command_Restart', true);
|
||||||
$this->commandManager->registerCommandListener('shutdown', $this, 'command_Shutdown', true);
|
$this->commandManager->registerCommandListener('shutdown', $this, 'command_Shutdown', true);
|
||||||
|
|
||||||
//Check connection every 3 minutes
|
//Check connection every 30 seconds
|
||||||
$this->timerManager->registerTimerListening($this, 'checkConnection', 1000 * 180);
|
$this->timerManager->registerTimerListening($this, 'checkConnection', 1000 * 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -139,6 +139,7 @@ class ManiaControl implements CommandListener, TimerListener {
|
|||||||
public function checkConnection($time) {
|
public function checkConnection($time) {
|
||||||
if ($this->client->getIdleTime() > 180) {
|
if ($this->client->getIdleTime() > 180) {
|
||||||
$this->client->getServerName();
|
$this->client->getServerName();
|
||||||
|
var_dump("test");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user