(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
This commit is contained in:
@@ -505,7 +505,11 @@ void ClientNetworkContentSocketHandler::SendReceive()
|
|||||||
#else
|
#else
|
||||||
WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL);
|
WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL);
|
||||||
#endif
|
#endif
|
||||||
if (FD_ISSET(this->sock, &read_fd)) this->Recv_Packets();
|
if (FD_ISSET(this->sock, &read_fd)) {
|
||||||
|
this->Recv_Packets();
|
||||||
|
this->lastActivity = _realtime_tick;
|
||||||
|
}
|
||||||
|
|
||||||
this->writable = !!FD_ISSET(this->sock, &write_fd);
|
this->writable = !!FD_ISSET(this->sock, &write_fd);
|
||||||
this->Send_Packets();
|
this->Send_Packets();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user