fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 1 Jun 2011 15:33:58 +0000 (15:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 1 Jun 2011 15:33:58 +0000 (15:33 +0000)
src/core/core_api.c

index 44bcbb32627b50cbd761d90f98282a5acc5e1009..d0dc892cdae6bda5045a00a1bcfba7728faa9c02 100644 (file)
@@ -513,6 +513,7 @@ reconnect_later (struct GNUNET_CORE_Handle *h)
                                 h->ready_peer_tail,
                                 pr);
   h->currently_down = GNUNET_YES;
+  GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK);
   h->reconnect_task = GNUNET_SCHEDULER_add_delayed (h->retry_backoff,
                                                    &reconnect_task,
                                                    h);