diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 2db85685..1be9d4fd 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -3342,6 +3342,7 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) continue; case MHD_CONNECTION_CLOSED: cleanup_connection (connection); + connection->in_idle = false; return MHD_NO; #ifdef UPGRADE_SUPPORT case MHD_CONNECTION_UPGRADE: