aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-28 22:22:46 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-28 22:22:46 +0300
commitcfd8cfeefaf5b60fc383dd376263f86305f6c4ee (patch)
treecbce1fbc4a09d1ed0653923a5143618c4f027803
parent7d0221189929a3251d956166f82b06c456b33ed9 (diff)
downloadlibmicrohttpd-cfd8cfeefaf5b60fc383dd376263f86305f6c4ee.tar.gz
libmicrohttpd-cfd8cfeefaf5b60fc383dd376263f86305f6c4ee.zip
Fixed regression introduced by dd327c1d13252373cd1730e445d19930417571bf
-rw-r--r--src/microhttpd/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index fcbfe105..7e4efe7e 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2478,6 +2478,7 @@ resume_suspended_connections (struct MHD_Daemon *daemon)
2478 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) 2478 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
2479 MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); 2479 MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex);
2480 2480
2481 next = daemon->suspended_connections_head;
2481 /* Clear the flag *only* if connections will be resumed otherwise 2482 /* Clear the flag *only* if connections will be resumed otherwise
2482 it may accidentally clear flag that was set at the same time in 2483 it may accidentally clear flag that was set at the same time in
2483 other thread (just after 'if (MHD_NO != daemon->resuming)' in 2484 other thread (just after 'if (MHD_NO != daemon->resuming)' in