mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-30 08:00:27 +08:00
修复小漏洞
This commit is contained in:
2
server.c
2
server.c
@@ -271,7 +271,7 @@ void acceptTimer(void *p) {
|
|||||||
while(*timer->thread && !pthread_kill(*timer->thread, 0)) {
|
while(*timer->thread && !pthread_kill(*timer->thread, 0)) {
|
||||||
sleep(MAXWAITSEC);
|
sleep(MAXWAITSEC);
|
||||||
puts("Check accept status");
|
puts("Check accept status");
|
||||||
if(time(NULL) - timer->touch > MAXWAITSEC) {
|
if(*timer->thread && time(NULL) - timer->touch > MAXWAITSEC) {
|
||||||
kill_thread(timer);
|
kill_thread(timer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user