Fixed operator precedence bug.
This commit is contained in:
parent
01d0256b42
commit
b88e096e19
1 changed files with 2 additions and 2 deletions
|
@ -1527,7 +1527,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
|
||||
/* pollin means a client has connected to us then */
|
||||
|
||||
if (!pollfd->revents & POLLIN)
|
||||
if (!(pollfd->revents & POLLIN))
|
||||
break;
|
||||
|
||||
if (context->fds_count >= MAX_CLIENTS) {
|
||||
|
@ -1644,7 +1644,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
|
||||
/* as we are listening, POLLIN means accept() is needed */
|
||||
|
||||
if (!pollfd->revents & POLLIN)
|
||||
if (!(pollfd->revents & POLLIN))
|
||||
break;
|
||||
|
||||
/* listen socket got an unencrypted connection... */
|
||||
|
|
Loading…
Add table
Reference in a new issue