diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 4ca35e0d..ab659064 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3714,6 +3714,9 @@ void | |||
3714 | MHD_update_last_activity_ (struct MHD_Connection *connection) | 3714 | MHD_update_last_activity_ (struct MHD_Connection *connection) |
3715 | { | 3715 | { |
3716 | struct MHD_Daemon *daemon = connection->daemon; | 3716 | struct MHD_Daemon *daemon = connection->daemon; |
3717 | #if defined(MHD_USE_THREADS) | ||
3718 | mhd_assert (NULL == daemon->worker_pool); | ||
3719 | #endif /* MHD_USE_THREADS */ | ||
3717 | 3720 | ||
3718 | if (0 == connection->connection_timeout_ms) | 3721 | if (0 == connection->connection_timeout_ms) |
3719 | return; /* Skip update of activity for connections | 3722 | return; /* Skip update of activity for connections |
@@ -4307,6 +4310,7 @@ cleanup_connection (struct MHD_Connection *connection) | |||
4307 | #ifdef MHD_USE_THREADS | 4310 | #ifdef MHD_USE_THREADS |
4308 | mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \ | 4311 | mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \ |
4309 | MHD_thread_ID_match_current_ (connection->pid) ); | 4312 | MHD_thread_ID_match_current_ (connection->pid) ); |
4313 | mhd_assert (NULL == daemon->worker_pool); | ||
4310 | #endif /* MHD_USE_THREADS */ | 4314 | #endif /* MHD_USE_THREADS */ |
4311 | 4315 | ||
4312 | if (connection->in_cleanup) | 4316 | if (connection->in_cleanup) |