gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16324 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r16324 - gnunet/src/transport
Date: Tue, 2 Aug 2011 13:55:37 +0200

Author: grothoff
Date: 2011-08-02 13:55:37 +0200 (Tue, 02 Aug 2011)
New Revision: 16324

Modified:
   gnunet/src/transport/test_quota_compliance.c
Log:
cancel on disconnect

Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c        2011-08-02 08:52:16 UTC 
(rev 16323)
+++ gnunet/src/transport/test_quota_compliance.c        2011-08-02 11:55:37 UTC 
(rev 16324)
@@ -632,6 +632,14 @@
 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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]