From 1990307349dce4eda6b576097d516b9e0342d98d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Sat, 24 Sep 2011 07:16:15 +0000 Subject: [PATCH] stop the dht as fast as possible --- src/vpn/gnunet-service-dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.25.1