X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/5773be3cba84cd8364a439932b3f097bef246132..a225dda5a42c61fc6befec3e4e8ba39c32fc93db:/src/event.c diff --git a/src/event.c b/src/event.c index 9384085..e3f72a4 100644 --- a/src/event.c +++ b/src/event.c @@ -183,7 +183,12 @@ void adns__timeouts(adns_state ads, int act, if (!tv_io) continue; inter_maxtoabs(tv_io,tvbuf,now,qu->timeout); } else { - if (!act) continue; + if (!act) { + tvbuf->tv_sec= 0; + tvbuf->tv_usec= 0; + *tv_io= tvbuf; + return; + } LIST_UNLINK(ads->timew,qu); if (qu->state != query_tosend) { adns__query_fail(qu,adns_s_timeout);