diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 74238a1b..7740e0e7 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2382,6 +2382,7 @@ update_last_activity (struct MHD_Connection *connection) | |||
2382 | if (connection->connection_timeout != daemon->connection_timeout) | 2382 | if (connection->connection_timeout != daemon->connection_timeout) |
2383 | return; /* custom timeout, no need to move it in "normal" DLL */ | 2383 | return; /* custom timeout, no need to move it in "normal" DLL */ |
2384 | 2384 | ||
2385 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | ||
2385 | /* move connection to head of timeout list (by remove + add operation) */ | 2386 | /* move connection to head of timeout list (by remove + add operation) */ |
2386 | XDLL_remove (daemon->normal_timeout_head, | 2387 | XDLL_remove (daemon->normal_timeout_head, |
2387 | daemon->normal_timeout_tail, | 2388 | daemon->normal_timeout_tail, |
@@ -2389,6 +2390,7 @@ update_last_activity (struct MHD_Connection *connection) | |||
2389 | XDLL_insert (daemon->normal_timeout_head, | 2390 | XDLL_insert (daemon->normal_timeout_head, |
2390 | daemon->normal_timeout_tail, | 2391 | daemon->normal_timeout_tail, |
2391 | connection); | 2392 | connection); |
2393 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | ||
2392 | } | 2394 | } |
2393 | 2395 | ||
2394 | 2396 | ||