(svn r25597) -Fix [FS#5635]: [Content] When the server closed the connection, the client would for eternity try to read a packet and never timeout making it impossible to reconnect

This commit is contained in:
rubidium
2013-07-13 09:26:11 +00:00
parent 7fea190641
commit bb9022c7c1
3 changed files with 12 additions and 6 deletions

View File

@@ -778,8 +778,10 @@ void ClientNetworkContentSocketHandler::SendReceive()
}
if (this->CanSendReceive()) {
this->ReceivePackets();
this->lastActivity = _realtime_tick;
if (this->ReceivePackets()) {
/* Only update activity once a packet is received, instead of everytime we try it. */
this->lastActivity = _realtime_tick;
}
}
this->SendPackets();