From 95ddb5b1c70dc36fa274a23fa69cb4d681c097cc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 May 2013 11:46:03 +0000 Subject: [PATCH] -unlock: --- src/microhttpd/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5a27df88..0cb7f1d5 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -2037,6 +2037,8 @@ MHD_connection_handle_write (struct MHD_Connection *connection) if (response->data_size == connection->response_write_position - response->data_start) { /* nothing to transmit, move on */ + if (response->crc != NULL) + pthread_mutex_unlock (&response->mutex); connection->state = MHD_CONNECTION_BODY_SENT; return MHD_YES; }