diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index b02978b9..eb210a36 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -5528,25 +5528,23 @@ MHD_run_wait (struct MHD_Daemon *daemon, | |||
5528 | 5528 | ||
5529 | if (0 > millisec) | 5529 | if (0 > millisec) |
5530 | millisec = -1; | 5530 | millisec = -1; |
5531 | if (false) | ||
5532 | { | ||
5533 | (void) 0; /* Mute compiler warning */ | ||
5534 | } | ||
5535 | #ifdef HAVE_POLL | 5531 | #ifdef HAVE_POLL |
5536 | else if (0 != (daemon->options & MHD_USE_POLL)) | 5532 | if (0 != (daemon->options & MHD_USE_POLL)) |
5537 | { | 5533 | { |
5538 | res = MHD_poll_all (daemon, millisec); | 5534 | res = MHD_poll_all (daemon, millisec); |
5539 | MHD_cleanup_connections (daemon); | 5535 | MHD_cleanup_connections (daemon); |
5540 | } | 5536 | } |
5537 | else | ||
5541 | #endif /* HAVE_POLL */ | 5538 | #endif /* HAVE_POLL */ |
5542 | #ifdef EPOLL_SUPPORT | 5539 | #ifdef EPOLL_SUPPORT |
5543 | else if (0 != (daemon->options & MHD_USE_EPOLL)) | 5540 | if (0 != (daemon->options & MHD_USE_EPOLL)) |
5544 | { | 5541 | { |
5545 | res = MHD_epoll (daemon, millisec); | 5542 | res = MHD_epoll (daemon, millisec); |
5546 | MHD_cleanup_connections (daemon); | 5543 | MHD_cleanup_connections (daemon); |
5547 | } | 5544 | } |
5548 | #endif | ||
5549 | else | 5545 | else |
5546 | #endif | ||
5547 | if (1) | ||
5550 | { | 5548 | { |
5551 | res = MHD_select (daemon, millisec); | 5549 | res = MHD_select (daemon, millisec); |
5552 | /* MHD_select does MHD_cleanup_connections already */ | 5550 | /* MHD_select does MHD_cleanup_connections already */ |