X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/a122e99d41be2e0f03311cf41e3eda4935238056..a8701ddcf5a58a106415adcef72fd3b01f9c098f:/src/event.c diff --git a/src/event.c b/src/event.c index 9384085..b3f71dd 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);