commit 95ddb5b1c70dc36fa274a23fa69cb4d681c097cc
parent 2184438b2d088ad0ffb54a763b045c0361b18a10
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 9 May 2013 11:46:03 +0000
-unlock:
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;
}