stop the dht as fast as possible
authorPhilipp Tölke <toelke@in.tum.de>
Sat, 24 Sep 2011 07:16:15 +0000 (07:16 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Sat, 24 Sep 2011 07:16:15 +0000 (07:16 +0000)
src/vpn/gnunet-service-dns.c

index d87086ea7bdb919783d89d2d756cdd14b568f5a4..e97da19218bb2a5c44310193ff48bc8f77818415 100644 (file)
@@ -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);
 }
 
 /**