From: Christian Grothoff Date: Tue, 2 Aug 2011 11:55:37 +0000 (+0000) Subject: cancel on disconnect X-Git-Tag: initial-import-from-subversion-38251~17520 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=799366d648c851454494b3040d83974294374747;p=oweals%2Fgnunet.git cancel on disconnect --- diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 2857a3057..a3b135eb2 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -632,6 +632,14 @@ notify_connect (void *cls, static void notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) { + if (cls == &p2) + { + if (NULL != transmit_handle) + { + GNUNET_TRANSPORT_notify_transmit_ready_cancel (transmit_handle); + transmit_handle = NULL; + } + } connected--; #if DEBUG_CONNECTIONS GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,