mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 23:00:24 -08:00
game inactivity timeout
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user