diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 1b95379c..00188a84 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -311,11 +311,6 @@ MHD_connection_close (struct MHD_Connection *connection, | |||
311 | &connection->client_context, | 311 | &connection->client_context, |
312 | termination_code); | 312 | termination_code); |
313 | connection->client_aware = MHD_NO; | 313 | connection->client_aware = MHD_NO; |
314 | if (connection->response != NULL) | ||
315 | { | ||
316 | MHD_destroy_response (connection->response); | ||
317 | connection->response = NULL; | ||
318 | } | ||
319 | } | 314 | } |
320 | 315 | ||
321 | 316 | ||
@@ -2291,6 +2286,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2291 | } | 2286 | } |
2292 | continue; | 2287 | continue; |
2293 | case MHD_CONNECTION_CLOSED: | 2288 | case MHD_CONNECTION_CLOSED: |
2289 | if (connection->response != NULL) | ||
2290 | { | ||
2291 | MHD_destroy_response (connection->response); | ||
2292 | connection->response = NULL; | ||
2293 | } | ||
2294 | daemon = connection->daemon; | 2294 | daemon = connection->daemon; |
2295 | if (0 != pthread_mutex_lock(&daemon->cleanup_connection_mutex)) | 2295 | if (0 != pthread_mutex_lock(&daemon->cleanup_connection_mutex)) |
2296 | { | 2296 | { |