mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-10 19:40:34 +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)) {
|
||||
sleep(MAXWAITSEC);
|
||||
puts("Check accept status");
|
||||
if(time(NULL) - timer->touch > MAXWAITSEC) {
|
||||
if(*timer->thread && time(NULL) - timer->touch > MAXWAITSEC) {
|
||||
kill_thread(timer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user