Reset network activity timeout only for certain packets.
This commit is contained in:
1 parent
9f0d204f56
commit
a3aee2b33a
4 files changed
+16
-2
No files matched your search
@@ -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