X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fc-ares-dns%2Fserv_c-ares-dns.c;h=278dd0c8a86c0868730d6dd43dbb5d8ad2520e80;hp=f48eac3877f71c6901a819f8731b9025c8ff0b98;hb=4119585313796eabb032cce61627ec95da60ac36;hpb=095de21d2211d73d50677a2f3f2ee6da59ead5a2 diff --git a/citadel/modules/c-ares-dns/serv_c-ares-dns.c b/citadel/modules/c-ares-dns/serv_c-ares-dns.c index f48eac387..278dd0c8a 100644 --- a/citadel/modules/c-ares-dns/serv_c-ares-dns.c +++ b/citadel/modules/c-ares-dns/serv_c-ares-dns.c @@ -297,6 +297,7 @@ void QueryCbDone(AsyncIO *IO) void DestructCAres(AsyncIO *IO) { + ev_timer_stop (event_base, &IO->DNS.timeout); ares_destroy_options(&IO->DNS.Options); } @@ -363,6 +364,7 @@ void QueueGetHostByNameDone(void *Ctx, EV_DNS_LOGT_INIT(unwind_stack); EV_DNS_LOGT_START(unwind_stack); ev_idle_start(event_base, &IO->unwind_stack); + ev_timer_stop (event_base, &IO->DNS.timeout); } void QueueGetHostByName(AsyncIO *IO,