diff --git a/src/main.c b/src/main.c index 9c32ce0..fa7034a 100644 --- a/src/main.c +++ b/src/main.c @@ -387,7 +387,7 @@ void print_msg() return; } - if (!x.revents & POLLIN) + if (!(x.revents & POLLIN)) break; /* no message */ memset(buf, 0, sizeof(buf));