From: Christian Grothoff Date: Tue, 3 Jul 2012 19:15:55 +0000 (+0000) Subject: -LRN: cancel the task when lookup is aborted X-Git-Tag: initial-import-from-subversion-38251~12668 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3b0641ab769d96340507199c771cc4270c4302d6;p=oweals%2Fgnunet.git -LRN: cancel the task when lookup is aborted --- diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index feb49ade1..b2be8811d 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c @@ -3666,6 +3666,8 @@ gns_resolver_lookup_record (struct GNUNET_CRYPTO_ShortHashCode zone, GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot handle this TLD %s\n", string_hash); + if (GNUNET_SCHEDULER_NO_TASK != rh->timeout_task) + GNUNET_SCHEDULER_cancel (rh->timeout_task); GNUNET_CONTAINER_DLL_remove (rlh_head, rlh_tail, rh); GNUNET_free (rh); GNUNET_free (rlh);