mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-05 02:00:25 +08:00
fix deadlock
This commit is contained in:
2
server.c
2
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) {
|
||||
|
||||
Reference in New Issue
Block a user