diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 54cbb17d..3b6cc572 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -2259,9 +2259,6 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2259 | continue; | 2259 | continue; |
2260 | case MHD_CONNECTION_CLOSED: | 2260 | case MHD_CONNECTION_CLOSED: |
2261 | daemon = connection->daemon; | 2261 | daemon = connection->daemon; |
2262 | DLL_remove (daemon->connections_head, | ||
2263 | daemon->connections_tail, | ||
2264 | connection); | ||
2265 | if (0 != pthread_mutex_lock(&daemon->cleanup_connection_mutex)) | 2262 | if (0 != pthread_mutex_lock(&daemon->cleanup_connection_mutex)) |
2266 | { | 2263 | { |
2267 | #if HAVE_MESSAGES | 2264 | #if HAVE_MESSAGES |
@@ -2269,6 +2266,9 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2269 | #endif | 2266 | #endif |
2270 | abort(); | 2267 | abort(); |
2271 | } | 2268 | } |
2269 | DLL_remove (daemon->connections_head, | ||
2270 | daemon->connections_tail, | ||
2271 | connection); | ||
2272 | DLL_insert (daemon->cleanup_head, | 2272 | DLL_insert (daemon->cleanup_head, |
2273 | daemon->cleanup_tail, | 2273 | daemon->cleanup_tail, |
2274 | connection); | 2274 | connection); |