aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index d54744d9..29d7cedf 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -2508,7 +2508,8 @@ close_all_connections (struct MHD_Daemon *daemon)
2508 /* now that we're alone, move everyone to cleanup */ 2508 /* now that we're alone, move everyone to cleanup */
2509 while (NULL != (pos = daemon->connections_head)) 2509 while (NULL != (pos = daemon->connections_head))
2510 { 2510 {
2511 pos->state = MHD_CONNECTION_CLOSED; 2511 MHD_connection_close (pos,
2512 MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN);
2512 DLL_remove (daemon->connections_head, 2513 DLL_remove (daemon->connections_head,
2513 daemon->connections_tail, 2514 daemon->connections_tail,
2514 pos); 2515 pos);