diff options
Diffstat (limited to 'src/lib/daemon_run.c')
-rw-r--r-- | src/lib/daemon_run.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/daemon_run.c b/src/lib/daemon_run.c index d95cff12..c9ed3720 100644 --- a/src/lib/daemon_run.c +++ b/src/lib/daemon_run.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | */ | 24 | */ |
25 | #include "internal.h" | 25 | #include "internal.h" |
26 | #include "connection_cleanup.h" | ||
26 | #include "daemon_epoll.h" | 27 | #include "daemon_epoll.h" |
27 | #include "daemon_poll.h" | 28 | #include "daemon_poll.h" |
28 | #include "daemon_select.h" | 29 | #include "daemon_select.h" |
@@ -60,19 +61,19 @@ MHD_daemon_run (struct MHD_Daemon *daemon) | |||
60 | case MHD_ELS_POLL: | 61 | case MHD_ELS_POLL: |
61 | sc = MHD_daemon_poll_ (daemon, | 62 | sc = MHD_daemon_poll_ (daemon, |
62 | MHD_NO); | 63 | MHD_NO); |
63 | MHD_cleanup_connections (daemon); | 64 | MHD_connection_cleanup_ (daemon); |
64 | return sc; | 65 | return sc; |
65 | #ifdef EPOLL_SUPPORT | 66 | #ifdef EPOLL_SUPPORT |
66 | case MHD_ELS_EPOLL: | 67 | case MHD_ELS_EPOLL: |
67 | sc = MHD_daemon_epoll_ (daemon, | 68 | sc = MHD_daemon_epoll_ (daemon, |
68 | MHD_NO); | 69 | MHD_NO); |
69 | MHD_cleanup_connections (daemon); | 70 | MHD_connection_cleanup_ (daemon); |
70 | return sc; | 71 | return sc; |
71 | #endif | 72 | #endif |
72 | case MHD_ELS_SELECT: | 73 | case MHD_ELS_SELECT: |
73 | return MHD_daemon_select_ (daemon, | 74 | return MHD_daemon_select_ (daemon, |
74 | MHD_NO); | 75 | MHD_NO); |
75 | /* MHD_select does MHD_cleanup_connections already */ | 76 | /* MHD_select does MHD_connection_cleanup_ already */ |
76 | default: | 77 | default: |
77 | return MHD_SC_CONFIGURATION_UNEXPECTED_ELS; | 78 | return MHD_SC_CONFIGURATION_UNEXPECTED_ELS; |
78 | } | 79 | } |