diff --git a/timeout.c b/timeout.c index 4497e3d..9e45e9d 100644 --- a/timeout.c +++ b/timeout.c @@ -16,7 +16,7 @@ void *close_timeout_connectionLoop(void *nullPtr) if (cts[i].timer >= timeout_minute) close_connection(cts + i); else - cts[i].timer = 0; + cts[i].timer++; } } } \ No newline at end of file