diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-02 11:55:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-02 11:55:37 +0000 |
commit | 799366d648c851454494b3040d83974294374747 (patch) | |
tree | 45b7ae2597dba4cfe0b5fc44eb60e403bc7051a2 /src/transport/test_quota_compliance.c | |
parent | 965295ecfb2b5aba301f7404d3f8442f034d42ea (diff) | |
download | gnunet-799366d648c851454494b3040d83974294374747.tar.gz gnunet-799366d648c851454494b3040d83974294374747.zip |
cancel on disconnect
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r-- | src/transport/test_quota_compliance.c | 8 |
1 files changed, 8 insertions, 0 deletions
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, | |||
632 | static void | 632 | static void |
633 | notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | 633 | notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) |
634 | { | 634 | { |
635 | if (cls == &p2) | ||
636 | { | ||
637 | if (NULL != transmit_handle) | ||
638 | { | ||
639 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (transmit_handle); | ||
640 | transmit_handle = NULL; | ||
641 | } | ||
642 | } | ||
635 | connected--; | 643 | connected--; |
636 | #if DEBUG_CONNECTIONS | 644 | #if DEBUG_CONNECTIONS |
637 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 645 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |