diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index bda9292f..b01539bb 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -4643,7 +4643,7 @@ MHD_quiesce_daemon (struct MHD_Daemon *daemon) | |||
4643 | ret = daemon->listen_fd; | 4643 | ret = daemon->listen_fd; |
4644 | if (MHD_INVALID_SOCKET == ret) | 4644 | if (MHD_INVALID_SOCKET == ret) |
4645 | return MHD_INVALID_SOCKET; | 4645 | return MHD_INVALID_SOCKET; |
4646 | if ( (MHD_ITC_IS_INVALID_(daemon->itc)) && | 4646 | if ( (0 == (daemon->options & (MHD_USE_ITC))) && |
4647 | (0 != (daemon->options & (MHD_USE_INTERNAL_POLLING_THREAD))) ) | 4647 | (0 != (daemon->options & (MHD_USE_INTERNAL_POLLING_THREAD))) ) |
4648 | { | 4648 | { |
4649 | #ifdef HAVE_MESSAGES | 4649 | #ifdef HAVE_MESSAGES |
@@ -5978,6 +5978,8 @@ MHD_start_daemon_va (unsigned int flags, | |||
5978 | goto thread_failed; | 5978 | goto thread_failed; |
5979 | } | 5979 | } |
5980 | } | 5980 | } |
5981 | else | ||
5982 | MHD_itc_set_invalid_ (d->itc); | ||
5981 | 5983 | ||
5982 | /* Divide available connections evenly amongst the threads. | 5984 | /* Divide available connections evenly amongst the threads. |
5983 | * Thread indexes in [0, leftover_conns) each get one of the | 5985 | * Thread indexes in [0, leftover_conns) each get one of the |