X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/226c5eef1caec08ee33276de158e263c0593c0d0..d6e3e09b500f90c2b6423bbeaaad5019e28e0c4a:/src/event.c diff --git a/src/event.c b/src/event.c index b2da291..9384085 100644 --- a/src/event.c +++ b/src/event.c @@ -565,8 +565,13 @@ int adns__internal_check(adns_state ads, qu= *query_io; if (!qu) { - if (!ads->output.head) return EAGAIN; - qu= ads->output.head; + if (ads->output.head) { + qu= ads->output.head; + } else if (ads->timew.head) { + return EAGAIN; + } else { + return ESRCH; + } } else { if (qu->id>=0) return EAGAIN; }