1
0
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:
源文雨
2022-05-04 21:16:27 +08:00
parent 28ec387b25
commit f4453fcaa3

View File

@@ -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) {