-LRN: fixing #2286
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 17:00:16 +0000 (17:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Apr 2012 17:00:16 +0000 (17:00 +0000)
src/statistics/test_statistics_api_watch_zero_value.c

index bbbefe904b7cac5e40115d6ac9c7edffc9ad3e61..9df09e45a2bcb52a8e93a12bbd143aabc2e32f1e 100644 (file)
@@ -103,6 +103,11 @@ watch_2 (void *cls, const char *subsystem, const char *name, uint64_t value,
   if ((42 == value) && (1 == ok2))
   {
     ok2 = 0;
+    if (0 == ok)
+    {
+      GNUNET_SCHEDULER_cancel (shutdown_task);
+      GNUNET_SCHEDULER_add_now (&normal_shutdown, NULL);
+    }
   }
   else
   {