MHD_start_daemon(): reject INTERNAL_POLLING_THREAD if threads are disabled

This commit is contained in:
Evgeny Grin (Karlson2k)
2023-11-21 17:37:13 +03:00
parent 5cbdf77176
commit a54fe75ecd
+5
View File
@@ -7626,6 +7626,11 @@ MHD_start_daemon_va (unsigned int flags,
return NULL;
#endif /* ! UPGRADE_SUPPORT */
}
#ifndef MHD_USE_THREADS
if (0 != (*pflags & MHD_USE_INTERNAL_POLLING_THREAD))
return NULL;
#endif /* ! MHD_USE_THREADS */
if (NULL == dh)
return NULL;