-fix call to stats destroy
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 20:35:23 +0000 (20:35 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 20:35:23 +0000 (20:35 +0000)
src/dns/gnunet-service-dns.c
src/exit/gnunet-daemon-exit.c
src/vpn/gnunet-service-vpn.c
src/vpn/test_gnunet_vpn.c

index 17f60749efc57c755c6209da5f0b837c8ed75412..63cee93bb0a166ad3dc943e790c48a1b1b296f0f 100644 (file)
@@ -363,7 +363,7 @@ cleanup_task (void *cls GNUNET_UNUSED,
   nc = NULL;
   if (stats != NULL)
   {
-    GNUNET_STATISTICS_destroy (stats, GNUNET_YES);
+    GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
     stats = NULL;
   }
   if (NULL != dns_exit)
index 86a24ff1cc92e9967fb35fa43b7177aae944827f..dca3f92886d86449733a5547b7461d499aa4dd5c 100644 (file)
@@ -2761,7 +2761,7 @@ cleanup (void *cls GNUNET_UNUSED,
   }
   if (stats != NULL)
   {
-    GNUNET_STATISTICS_destroy (stats, GNUNET_YES);
+    GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
     stats = NULL;
   }
   for (i=0;i<8;i++)
index 7f7dcbf1d1ac781f49510005fd0e9c29e62631b0..796a4a6e109e0eaa0ef701f5b91768a40a0542c4 100644 (file)
@@ -2888,7 +2888,7 @@ cleanup (void *cls GNUNET_UNUSED,
   }
   if (stats != NULL)
   {
-    GNUNET_STATISTICS_destroy (stats, GNUNET_YES);
+    GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
     stats = NULL;
   }
   for (i=0;i<5;i++)
index c7ff832e7d3a5a3f480f53d2fb692e35829c0e4e..22d1b8d9432b452eba3f897ab77172345e7bca12 100644 (file)
@@ -461,7 +461,9 @@ main (int argc, char *const *argv)
                     NULL);
   GNUNET_PROGRAM_run ((sizeof (argvx) / sizeof (char *)) - 1, argvx,
                       "test_gnunet_vpn", "nohelp", options, &run, NULL);
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Stopping Peer\n");
   stop_peer (&p1);
+  GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "DONE\n");
   GNUNET_DISK_directory_remove ("/tmp/gnunet-test-vpn");
   return global_ret;
 }