summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index fdab4870..2dcd6f50 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -1031,6 +1031,13 @@ static void do_TCP_unconfirmed(TCP_Server *TCP_server)
1031 1031
1032static void do_TCP_confirmed(TCP_Server *TCP_server) 1032static void do_TCP_confirmed(TCP_Server *TCP_server)
1033{ 1033{
1034#ifdef TCP_SERVER_USE_EPOLL
1035
1036 if (TCP_server->last_run_pinged == unix_time())
1037 return;
1038
1039 TCP_server->last_run_pinged = unix_time();
1040#endif
1034 uint32_t i; 1041 uint32_t i;
1035 1042
1036 for (i = 0; i < TCP_server->size_accepted_connections; ++i) { 1043 for (i = 0; i < TCP_server->size_accepted_connections; ++i) {