aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index db99aa54..ac420df1 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -4154,7 +4154,7 @@ close_all_connections (struct MHD_Daemon *daemon)
4154 /* now, collect threads from thread pool */ 4154 /* now, collect threads from thread pool */
4155 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) 4155 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
4156 { 4156 {
4157 while (NULL != (pos = daemon->connections_head)) 4157 for (pos = daemon->connections_head; NULL != pos; pos = pos->next)
4158 { 4158 {
4159 if (0 != MHD_join_thread_ (pos->pid)) 4159 if (0 != MHD_join_thread_ (pos->pid))
4160 MHD_PANIC ("Failed to join a thread\n"); 4160 MHD_PANIC ("Failed to join a thread\n");
@@ -4633,4 +4633,3 @@ void MHD_fini(void)
4633_SET_INIT_AND_DEINIT_FUNCS(MHD_init, MHD_fini); 4633_SET_INIT_AND_DEINIT_FUNCS(MHD_init, MHD_fini);
4634 4634
4635/* end of daemon.c */ 4635/* end of daemon.c */
4636