Reset network activity timeout only for certain packets.
This commit is contained in:
@@ -165,6 +165,8 @@ AbstractServerGameStateReceiving::Process(ServerGameThread &server)
|
||||
// Process packet if one was received.
|
||||
if (packet.get())
|
||||
{
|
||||
if (packet->IsClientActivity())
|
||||
session.sessionData->ResetActivityTimer();
|
||||
if (packet->ToNetPacketRetrievePlayerInfo())
|
||||
{
|
||||
// Delegate to Lobby.
|
||||
|
||||
Reference in New Issue
Block a user