diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index d893e0bd..2bdd5e16 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3195,8 +3195,6 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon) | |||
3195 | if (NULL != pos->tls_session) | 3195 | if (NULL != pos->tls_session) |
3196 | gnutls_deinit (pos->tls_session); | 3196 | gnutls_deinit (pos->tls_session); |
3197 | #endif /* HTTPS_SUPPORT */ | 3197 | #endif /* HTTPS_SUPPORT */ |
3198 | daemon->connections--; | ||
3199 | daemon->at_limit = false; | ||
3200 | 3198 | ||
3201 | /* clean up the connection */ | 3199 | /* clean up the connection */ |
3202 | if (NULL != daemon->notify_connection) | 3200 | if (NULL != daemon->notify_connection) |
@@ -3247,6 +3245,8 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon) | |||
3247 | free (pos); | 3245 | free (pos); |
3248 | 3246 | ||
3249 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 3247 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
3248 | daemon->connections--; | ||
3249 | daemon->at_limit = false; | ||
3250 | } | 3250 | } |
3251 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 3251 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
3252 | } | 3252 | } |