(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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user