summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorphoebos <phoebos@tilde.institute>2023-05-19 23:03:43 +0000
committerphoebos <phoebos@tilde.institute>2023-05-19 23:03:43 +0000
commit32f67cb3213d26b9f4ea676aba37a22c8d51d21e (patch)
tree5154877a48d642ab3e8311e32f8d35a80b86d7c9
parent58d66f3903346894295268a0e536a911f7dad029 (diff)
downloadcbot-32f67cb3213d26b9f4ea676aba37a22c8d51d21e.tar.gz
fix
-rw-r--r--receive.c2
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 */