mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Max wait: minor refactoring
This commit is contained in:
@@ -94,13 +94,14 @@ log_listen_broken (struct MHD_Daemon *restrict d)
|
||||
MHD_INTERNAL MHD_FN_PAR_NONNULL_ALL_ uint_fast64_t
|
||||
mhd_daemon_get_wait_max (struct MHD_Daemon *restrict d)
|
||||
{
|
||||
bool zero_wait = d->events.zero_wait;
|
||||
|
||||
mhd_assert (! mhd_D_HAS_WORKERS (d));
|
||||
|
||||
if (d->events.accept_pending && ! d->conns.block_new)
|
||||
return 0;
|
||||
if (zero_wait)
|
||||
if (d->threading.resume_requested) /* Remove? It is triggered by ITC anyway */
|
||||
return 0;
|
||||
if (d->events.zero_wait)
|
||||
return 0;
|
||||
if (NULL != mhd_DLINKEDL_GET_FIRST (&(d->events), proc_ready))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user