trac 28 brackets around POLLIN flag test
authorSimon Wulf <simonwulf.lund@bredband.net>
Sun, 5 May 2013 22:11:53 +0000 (06:11 +0800)
committerAndy Green <andy.green@linaro.org>
Sun, 5 May 2013 22:14:03 +0000 (06:14 +0800)
Signed-off-by: Simon Wulf <simonwulf.lund@bredband.net>
lib/libwebsockets.c

index 579763d..983af5e 100644 (file)
@@ -973,7 +973,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
 
                /* handle session socket closed */
 
-               if ((!pollfd->revents & POLLIN) &&
+               if ((!(pollfd->revents & POLLIN)) &&
                                (pollfd->revents & (POLLERR | POLLHUP))) {
 
                        lwsl_debug("Session Socket %p (fd=%d) dead\n",