|
|
@@ -3175,7 +3175,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
|
|
|
}
|
|
|
/* Response is not required anymore for this connection. */
|
|
|
if (NULL != connection->response)
|
|
|
- MHD_destroy_response (connection->response);
|
|
|
+ {
|
|
|
+ struct MHD_Response const *resp = connection->response;
|
|
|
+ connection->response = NULL;
|
|
|
+ MHD_destroy_response (resp);
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
#endif /* UPGRADE_SUPPORT */
|