mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-27 22:50:28 +08:00
修正get验证quit
This commit is contained in:
3
server.c
3
server.c
@@ -169,8 +169,7 @@ int s1_get(THREADTIMER *timer) { //get kanban
|
|||||||
close_file(fp);
|
close_file(fp);
|
||||||
timer->is_open = 0;
|
timer->is_open = 0;
|
||||||
int r = send_all(kanban_path, timer);
|
int r = send_all(kanban_path, timer);
|
||||||
printf("Sendall returns %d\n", r);
|
if(strstr(timer->data, "quit") == timer->data + timer->numbytes - 4) {
|
||||||
if(strstr(timer->data, "quit") == timer->data - 4) {
|
|
||||||
puts("Found last cmd is quit.");
|
puts("Found last cmd is quit.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user