diff options
-rw-r--r-- | receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |