aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 745433f..f5f3e46 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -35,7 +35,7 @@ void *wait_for_commands(void* void_conn)
while (1) {
char buf[1024];
ssize_t len = recv(conn->fd, buf, sizeof buf - 1, 0);
- if (len == -1) {
+ if (len <= 0) {
break;
}