From d23a2ea6fbe415b0e56249d55fb2b178d76629f2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 24 Jan 2012 03:14:22 +0000 Subject: [PATCH] - minor fix --- src/mesh/mesh_api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index c45017ae0..4f733c1d3 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -413,6 +413,11 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner) th = th->next; } } + if (NULL == h->th_head && NULL != h->th) + { + GNUNET_CLIENT_notify_transmit_ready_cancel(h->th); + h->th = NULL; + } GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t); for (i = 0; i < t->npeers; i++) { -- 2.25.1