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

fix split

This commit is contained in:
fumiama
2022-09-04 16:04:20 +08:00
parent 1db396ea16
commit 77bb23c02e

View File

@@ -464,7 +464,12 @@ static int s1_get(threadtimer_t *timer) { //get kanban
}
}
}
return close_file_and_send(timer, "null", 4);
int r = close_file_and_send(timer, "null", 4);
if(strstr(timer->data, "quit") == timer->data + timer->numbytes - 4) {
puts("Found last cmd is quit.");
return 0;
}
return r;
}
static int s2_set(threadtimer_t *timer) {