1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-29 23:51:09 +08:00
This commit is contained in:
源文雨
2022-10-26 16:35:01 +08:00
parent ebe320f6ff
commit 2d50752c6a

View File

@@ -343,8 +343,9 @@ static int handle_accept(threadtimer_t* p) {
if((p)->numbytes <= 0) break; if((p)->numbytes <= 0) break;
if(!(r = check_buffer((p)))) break; if(!(r = check_buffer((p)))) break;
} }
r &= (p)->numbytes >= 0 || errno == EWOULDBLOCK;
printf("Recv finished, continune: %s\n", r?"true":"false"); printf("Recv finished, continune: %s\n", r?"true":"false");
return r && (p)->numbytes >= 0; return r;
} }
static void handle_int(int signo) { static void handle_int(int signo) {