1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-10 19:40:34 +08:00

修复小漏洞

This commit is contained in:
fumiama
2021-05-03 20:33:44 +08:00
parent 41de538f29
commit 2d31558345

View File

@@ -271,7 +271,7 @@ void acceptTimer(void *p) {
while(*timer->thread && !pthread_kill(*timer->thread, 0)) {
sleep(MAXWAITSEC);
puts("Check accept status");
if(time(NULL) - timer->touch > MAXWAITSEC) {
if(*timer->thread && time(NULL) - timer->touch > MAXWAITSEC) {
kill_thread(timer);
}
}