From: Philipp Tölke Date: Sat, 24 Sep 2011 07:16:15 +0000 (+0000) Subject: stop the dht as fast as possible X-Git-Tag: initial-import-from-subversion-38251~16967 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1990307349dce4eda6b576097d516b9e0342d98d;p=oweals%2Fgnunet.git stop the dht as fast as possible --- diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index d87086ea7..e97da1921 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c @@ -653,6 +653,8 @@ receive_dht (void *cls, struct GNUNET_TIME_Absolute exp ((struct receive_dht_cls *) cls)->handle; GNUNET_free (cls); + GNUNET_DHT_get_stop (handle); + GNUNET_assert (type == GNUNET_BLOCK_TYPE_DNS); /* If no query with this id is pending, ignore the block */ @@ -742,8 +744,6 @@ receive_dht (void *cls, struct GNUNET_TIME_Absolute exp server_notify = GNUNET_SERVER_notify_transmit_ready (query_states[id].client, len, GNUNET_TIME_UNIT_FOREVER_REL, &send_answer, query_states[id].client); - - GNUNET_DHT_get_stop (handle); } /**