From fbbc9197edec8a94ef01b723b7e04d21b4b1579b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 18 Sep 2013 16:36:22 +0000 Subject: -oops --- src/microhttpd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/microhttpd') 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) } if (MHD_YES == try_ready_normal_body (connection)) { + if (NULL != connection->response->crc) + pthread_mutex_unlock (&connection->response->mutex); connection->state = MHD_CONNECTION_NORMAL_BODY_READY; break; } - if (connection->response->crc != NULL) - pthread_mutex_unlock (&connection->response->mutex); /* not ready, no socket action */ break; case MHD_CONNECTION_CHUNKED_BODY_READY: -- cgit v1.2.3