diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-31 21:19:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-31 21:19:16 +0000 |
commit | 6a7f8164026404f6e950d4df071cf71ef03e2ada (patch) | |
tree | 54178150c6bc77f5a044b07ff80ba5ae9d5eab8d /src | |
parent | afbb55ab2e50a669ac8212a084051fb970d72706 (diff) | |
download | gnunet-6a7f8164026404f6e950d4df071cf71ef03e2ada.tar.gz gnunet-6a7f8164026404f6e950d4df071cf71ef03e2ada.zip |
kill pending transmit tasks on destroy
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index f92b94ca1..122950a74 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -1535,6 +1535,11 @@ GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle) | |||
1535 | GNUNET_free_non_null (handle->my_hello); | 1535 | GNUNET_free_non_null (handle->my_hello); |
1536 | handle->my_hello = NULL; | 1536 | handle->my_hello = NULL; |
1537 | GNUNET_ARM_stop_services (handle->cfg, handle->sched, "transport", "peerinfo", NULL); | 1537 | GNUNET_ARM_stop_services (handle->cfg, handle->sched, "transport", "peerinfo", NULL); |
1538 | if (NULL != handle->network_handle) | ||
1539 | { | ||
1540 | GNUNET_CLIENT_notify_transmit_ready_cancel (handle->network_handle); | ||
1541 | handle->network_handle = NULL; | ||
1542 | } | ||
1538 | if (NULL != (client = handle->client)) | 1543 | if (NULL != (client = handle->client)) |
1539 | { | 1544 | { |
1540 | #if DEBUG_TRANSPORT | 1545 | #if DEBUG_TRANSPORT |