mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
MHD_quiesce_daemon(): fixed return value if already quiesced
Fixed to return proper documented value when MHD_quiesce_daemon() was already called for the daemon.
This commit is contained in:
@@ -6128,7 +6128,8 @@ MHD_quiesce_daemon (struct MHD_Daemon *daemon)
|
||||
MHD_socket ret;
|
||||
|
||||
ret = daemon->listen_fd;
|
||||
if (MHD_INVALID_SOCKET == ret)
|
||||
if ((MHD_INVALID_SOCKET == ret)
|
||||
|| daemon->was_quiesced)
|
||||
return MHD_INVALID_SOCKET;
|
||||
if ( (0 == (daemon->options & (MHD_USE_ITC))) &&
|
||||
MHD_D_IS_USING_THREADS_ (daemon) )
|
||||
|
||||
Reference in New Issue
Block a user