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
@@ -358,6 +358,9 @@ ServerLobbyThread::ProcessLoop()
|
||||
}
|
||||
if (packet.get())
|
||||
{
|
||||
if (packet->IsClientActivity())
|
||||
session.sessionData->ResetActivityTimer();
|
||||
|
||||
if (session.sessionData->GetState() == SessionData::Init)
|
||||
{
|
||||
if (packet->ToNetPacketInit())
|
||||
|
||||
Reference in new issue
Block a user