diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-01 15:32:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-01 15:32:16 +0000 |
commit | 33d4f87ec5ca7af4cd26f43a735af24bc592a50b (patch) | |
tree | d2e3cd96dfc08dc1b0640f5ff167f75e0c50f141 /src/core/core_api.c | |
parent | 85c91cf16bcb28522945d27ec1fb52477b603bef (diff) | |
download | gnunet-33d4f87ec5ca7af4cd26f43a735af24bc592a50b.tar.gz gnunet-33d4f87ec5ca7af4cd26f43a735af24bc592a50b.zip |
fix
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 350a5129d..44bcbb326 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -1502,14 +1502,14 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle) | |||
1502 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); | 1502 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); |
1503 | handle->client = NULL; | 1503 | handle->client = NULL; |
1504 | } | 1504 | } |
1505 | GNUNET_CONTAINER_multihashmap_iterate (handle->peers, | ||
1506 | &disconnect_and_free_peer_entry, | ||
1507 | handle); | ||
1505 | if (handle->reconnect_task != GNUNET_SCHEDULER_NO_TASK) | 1508 | if (handle->reconnect_task != GNUNET_SCHEDULER_NO_TASK) |
1506 | { | 1509 | { |
1507 | GNUNET_SCHEDULER_cancel (handle->reconnect_task); | 1510 | GNUNET_SCHEDULER_cancel (handle->reconnect_task); |
1508 | handle->reconnect_task = GNUNET_SCHEDULER_NO_TASK; | 1511 | handle->reconnect_task = GNUNET_SCHEDULER_NO_TASK; |
1509 | } | 1512 | } |
1510 | GNUNET_CONTAINER_multihashmap_iterate (handle->peers, | ||
1511 | &disconnect_and_free_peer_entry, | ||
1512 | handle); | ||
1513 | GNUNET_CONTAINER_multihashmap_destroy (handle->peers); | 1513 | GNUNET_CONTAINER_multihashmap_destroy (handle->peers); |
1514 | GNUNET_break (handle->ready_peer_head == NULL); | 1514 | GNUNET_break (handle->ready_peer_head == NULL); |
1515 | GNUNET_free (handle); | 1515 | GNUNET_free (handle); |