summaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 30cbbd06..43c026ff 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1486,7 +1486,7 @@ thread_main_handle_connection (void *data)
#if WINDOWS
/* drain signaling pipe before other processing */
if ( (MHD_INVALID_PIPE_ != spipe) &&
- (0 != (p[1].revents & (POLLERR | POLLHUP))) )
+ (0 != (p[1].revents & (POLLERR | POLLHUP | POLLIN))) )
MHD_pipe_drain_ (spipe);
#endif
if (MHD_NO ==