From 32a88ffefd4cf45572e11d8d9f3c4033707b33a0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 17 Jan 2012 15:36:43 +0000 Subject: [PATCH] Fixed queue bug --- 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 c089b3b3f..cebbd7518 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1123,6 +1123,11 @@ send_callback (void *cls, size_t size, void *buf) } if (th->timeout_task != GNUNET_SCHEDULER_NO_TASK) GNUNET_SCHEDULER_cancel (th->timeout_task); + if (NULL != th->tunnel) + { + th->tunnel->mesh->npackets--; + th->tunnel->npackets--; + } GNUNET_CONTAINER_DLL_remove (h->th_head, h->th_tail, th); GNUNET_free (th); cbuf += psize; -- 2.25.1