fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jan 2010 22:29:33 +0000 (22:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jan 2010 22:29:33 +0000 (22:29 +0000)
src/hostlist/test_gnunet_daemon_hostlist.c

index 04330dbd04525ef3e4fbbcb680e4df31213e8761..a98aa52fe7708fd5cdd4e38d2dea812eb39e31ca 100644 (file)
@@ -101,6 +101,9 @@ notify_connect (void *cls,
              "Peers connected, shutting down.\n");
   GNUNET_assert (ok == 4);
   ok = 0;
+  GNUNET_SCHEDULER_cancel (sched,
+                          timeout_task);
+  timeout_task = GNUNET_SCHEDULER_NO_TASK;
   GNUNET_SCHEDULER_add_now (sched,
                            &clean_up, NULL);
 }