1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-08 01:51:32 +08:00

修正get验证quit

This commit is contained in:
fumiama
2021-05-05 22:54:14 +08:00
parent 8bdd13978c
commit 3292bfbd9d

View File

@@ -169,8 +169,7 @@ int s1_get(THREADTIMER *timer) { //get kanban
close_file(fp);
timer->is_open = 0;
int r = send_all(kanban_path, timer);
printf("Sendall returns %d\n", r);
if(strstr(timer->data, "quit") == timer->data - 4) {
if(strstr(timer->data, "quit") == timer->data + timer->numbytes - 4) {
puts("Found last cmd is quit.");
return 0;
}