aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 7157d6d1..6190fc29 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2353,11 +2353,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
2353 } 2353 }
2354 if (MHD_YES == try_ready_normal_body (connection)) 2354 if (MHD_YES == try_ready_normal_body (connection))
2355 { 2355 {
2356 if (NULL != connection->response->crc)
2357 pthread_mutex_unlock (&connection->response->mutex);
2356 connection->state = MHD_CONNECTION_NORMAL_BODY_READY; 2358 connection->state = MHD_CONNECTION_NORMAL_BODY_READY;
2357 break; 2359 break;
2358 } 2360 }
2359 if (connection->response->crc != NULL)
2360 pthread_mutex_unlock (&connection->response->mutex);
2361 /* not ready, no socket action */ 2361 /* not ready, no socket action */
2362 break; 2362 break;
2363 case MHD_CONNECTION_CHUNKED_BODY_READY: 2363 case MHD_CONNECTION_CHUNKED_BODY_READY: