respect minimal logging
authorNathan S. Evans <evans@in.tum.de>
Thu, 17 Feb 2011 09:57:21 +0000 (09:57 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 17 Feb 2011 09:57:21 +0000 (09:57 +0000)
src/dht/gnunet-dht-driver.c

index dfe073ce54f29101f90798f92785bb47838fda23..8cca5f0d68890b598ccd300c04a388e4947d1a38 100644 (file)
@@ -2603,7 +2603,7 @@ topology_callback (void *cls,
 
       GNUNET_SCHEDULER_cancel (die_task);
 
-      if (dhtlog_handle != NULL)
+      if ((GNUNET_YES == dhtlog_minimal) && (NULL != dhtlog_handle))
         {
           topo_ctx = GNUNET_malloc(sizeof(struct TopologyIteratorContext));
           GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Setting continue gets and puts as topo_cont\n");