daemon: fixed delayed notification callback in thread-per-connection mode

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-10-10 11:54:29 +03:00
parent 4237407f81
commit 8fea3c9192
+3 -2
View File
@@ -6873,8 +6873,9 @@ MHD_start_daemon_va (unsigned int flags,
}
#endif
if ( (NULL != daemon->notify_completed) &&
(0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
if ( (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION))
&& ((NULL != daemon->notify_completed)
|| (NULL != daemon->notify_connection)) )
*pflags |= MHD_USE_ITC; /* requires ITC */
#ifndef NDEBUG