mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
game inactivity timeout
This commit is contained in:
parent
a9f590e905
commit
5efb92e2d6
7 changed files with 30 additions and 3 deletions
|
|
@ -149,7 +149,7 @@ void Server_ProtocolHandler::processCommand(Command *command)
|
|||
|
||||
void Server_ProtocolHandler::pingClockTimeout()
|
||||
{
|
||||
if (lastCommandTime.secsTo(QDateTime::currentDateTime()) > 10)
|
||||
if (lastCommandTime.secsTo(QDateTime::currentDateTime()) > server->getMaxPlayerInactivityTime())
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue