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) {