From: Bart Polot Date: Tue, 24 Jan 2012 03:14:22 +0000 (+0000) Subject: - minor fix X-Git-Tag: initial-import-from-subversion-38251~15159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d23a2ea6fbe415b0e56249d55fb2b178d76629f2;p=oweals%2Fgnunet.git - minor fix --- 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++) {