1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

trac 28 brackets around POLLIN flag test

Signed-off-by: Simon Wulf <simonwulf.lund@bredband.net>
This commit is contained in:
Simon Wulf 2013-05-06 06:11:53 +08:00 committed by Andy Green
parent 66986b2e85
commit 502b9948f2

View 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",