windows plat correct assert test in lws_poll_listen_fd
authorAndy Green <andy.green@linaro.org>
Thu, 18 Feb 2016 13:02:34 +0000 (21:02 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 18 Feb 2016 13:02:34 +0000 (21:02 +0800)
After https://github.com/warmcat/libwebsockets/issues/430

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-win.c

index 6fcf6da..cff09db 100644 (file)
@@ -111,7 +111,7 @@ LWS_VISIBLE int lws_poll_listen_fd(struct lws_pollfd *fd)
        fd_set readfds;
        struct timeval tv = { 0, 0 };
 
-       assert(fd->events == LWS_POLLIN);
+       assert((fd->events & LWS_POLLIN) == LWS_POLLIN);
 
        FD_ZERO(&readfds);
        FD_SET(fd->fd, &readfds);