From 32f67cb3213d26b9f4ea676aba37a22c8d51d21e Mon Sep 17 00:00:00 2001 From: phoebos Date: Fri, 19 May 2023 23:03:43 +0000 Subject: fix --- receive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receive.c b/receive.c index a3aee2c..d1568d3 100644 --- a/receive.c +++ b/receive.c @@ -64,7 +64,7 @@ main(void) { } if ((fds[0].revents & POLLIN) - && fds[2].fd != -1) { + && fds[2].fd == -1) { int s_recv = accept_one(fds[0].fd); if (s_recv != -1) { fds[0].events = 0; /* don't want to accept any more currently */ -- cgit 1.4.1-2-gfad0