From fb92efe72ca64da2064f0d1928eb415deb0602b4 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 27 Sep 2012 12:56:59 +0000 Subject: [PATCH] - cancel tmt_rdy on peer disconnect --- src/mesh/gnunet-service-mesh.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 887507cd1..b63fec31f 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -7774,6 +7774,11 @@ core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) queue_destroy(q, GNUNET_YES); q = n; } + if (NULL != pi->core_transmit) + { + GNUNET_CORE_notify_transmit_ready_cancel(pi->core_transmit); + pi->core_transmit = NULL; + } peer_info_remove_path (pi, pi->id, myid); if (myid == pi->id) { -- 2.25.1