summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content.cpp6
1 files changed, 5 insertions, 1 deletions
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();
}