mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
MHD_start_daemon(): reject INTERNAL_POLLING_THREAD if threads are disabled
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user