diff options
Diffstat (limited to 'src/transport/test_transport_api_disconnect.c')
-rw-r--r-- | src/transport/test_transport_api_disconnect.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c index a96a1a152..267c56af6 100644 --- a/src/transport/test_transport_api_disconnect.c +++ b/src/transport/test_transport_api_disconnect.c | |||
@@ -262,6 +262,9 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
262 | { | 262 | { |
263 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n", | 263 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' disconnected (%p)!\n", |
264 | GNUNET_i2s (peer), cls); | 264 | GNUNET_i2s (peer), cls); |
265 | if (th != NULL) | ||
266 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (th); | ||
267 | th = NULL; | ||
265 | peers_connected--; | 268 | peers_connected--; |
266 | } | 269 | } |
267 | 270 | ||