Reset network activity timeout only for certain packets.
This commit is contained in:
@@ -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