From 0d12c46b5ecfc3b98f02188579663c79dbcbac5a Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 25 Feb 2009 17:00:59 +0000 Subject: (svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute. --- src/network/network_content.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index e6d1781cb..83740c81c 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -505,7 +505,11 @@ void ClientNetworkContentSocketHandler::SendReceive() #else WaitSelect(FD_SETSIZE, &read_fd, &write_fd, NULL, &tv, NULL); #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->Send_Packets(); } -- cgit v1.2.3-70-g09d2