aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-15 14:12:49 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-15 14:12:49 +0000
commit216254ed3b9835df08609467c0173a54b617e677 (patch)
treea623911992c399c3bf4395e32ab9656259b1bd04 /src/core/core_api.c
parent73999f04384930f0f7fe7a562bafae798fdf2e95 (diff)
downloadgnunet-216254ed3b9835df08609467c0173a54b617e677.tar.gz
gnunet-216254ed3b9835df08609467c0173a54b617e677.zip
cleaner
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index af46c6e63..7f7928fd3 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -490,11 +490,15 @@ reconnect_later (struct GNUNET_CORE_Handle *h)
490 struct PeerRecord *pr; 490 struct PeerRecord *pr;
491 491
492 GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); 492 GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK);
493 if (NULL != h->cth)
494 {
495 GNUNET_CLIENT_notify_transmit_ready_cancel (h->cth);
496 h->cth = NULL;
497 }
493 if (h->client != NULL) 498 if (h->client != NULL)
494 { 499 {
495 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); 500 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
496 h->client = NULL; 501 h->client = NULL;
497 h->cth = NULL;
498 } 502 }
499 h->currently_down = GNUNET_YES; 503 h->currently_down = GNUNET_YES;
500 GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK); 504 GNUNET_assert (h->reconnect_task == GNUNET_SCHEDULER_NO_TASK);