From 799366d648c851454494b3040d83974294374747 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 2 Aug 2011 11:55:37 +0000 Subject: [PATCH] cancel on disconnect --- src/transport/test_quota_compliance.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- 2.25.1