From f4453fcaa30f2e8aa6df4537320a6624db8d6746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 4 May 2022 21:16:27 +0800 Subject: [PATCH] fix deadlock --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 17aaf81..9a2cd71 100644 --- a/server.c +++ b/server.c @@ -407,7 +407,7 @@ static void accept_timer(void *p) { sleep(MAXWAITSEC / 4); time_t waitsec = time(NULL) - timer->touch; printf("Wait sec: %u, max: %u\n", (unsigned int)waitsec, MAXWAITSEC); - if(waitsec > MAXWAITSEC+2) break; + if(waitsec > MAXWAITSEC+is_ex_dict_open?MAXWAITSEC:0) break; } if(thread) {