fixing #1801
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Sep 2011 11:00:24 +0000 (11:00 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Sep 2011 11:00:24 +0000 (11:00 +0000)
src/transport/test_transport_api_disconnect.c
src/transport/test_transport_api_limited_sockets.c
src/transport/test_transport_api_reliability.c
src/transport/test_transport_api_timeout.c
src/transport/test_transport_api_unreliability.c
src/transport/test_transport_api_unreliability_constant.c

index a96a1a152a1ce4b0aa53f133b279ab7e824e1d3f..267c56af67ee8552d4809f9f4d86d57b212f0de2 100644 (file)
@@ -262,6 +262,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n",
               GNUNET_i2s (peer), cls);
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
   peers_connected--;
 }
 
index a582a8f700d688fc8bb5d9588ecd8acf743b3c94..bc8b8253841179407bc95ff50ae4d9701ac80147 100644 (file)
@@ -196,6 +196,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n",
               GNUNET_i2s (peer), cls);
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
 }
 
 static void
index 18971a986218950e7dc1984edec24c767c73134f..1b6d89afe60cfccc7bf7b12892be5bac326f4154 100644 (file)
@@ -352,6 +352,10 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n",
               GNUNET_i2s (peer), cls);
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
+
 }
 
 static void
index cec60e989407dda166dc44992a25dfa68626a95f..0124889ce4f00a397914f248e550abfb422060ed 100644 (file)
@@ -188,6 +188,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
                 GNUNET_i2s (peer));
     disconnects++;
   }
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
 }
 
 static void
index c675e18a0b58e972a76582bd178c4fa021365f4c..7b7ec2d3583028dd779cc15802fd0c2fb9e4bf18 100644 (file)
@@ -416,6 +416,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n",
               GNUNET_i2s (peer), cls);
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
 }
 
 static void
index 5ad6c6afb11b2f189fb85a554bdc7a6684eca3f5..64fe4be379d2aa9f9dfb86093e49ce5557dca4a9 100644 (file)
@@ -384,6 +384,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n",
               GNUNET_i2s (peer), cls);
+  if (th != NULL)
+    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
+  th = NULL;
 }
 
 static void