From ebe320f6ff712c8cf61978dd685d215001b57a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:31:36 +0800 Subject: [PATCH] fix --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 1c6f0c6..f197483 100644 --- a/server.c +++ b/server.c @@ -344,7 +344,7 @@ static int handle_accept(threadtimer_t* p) { if(!(r = check_buffer((p)))) break; } printf("Recv finished, continune: %s\n", r?"true":"false"); - return r && (p)->numbytes > 0; + return r && (p)->numbytes >= 0; } static void handle_int(int signo) {