From: Bart Polot Date: Tue, 17 Jan 2012 15:36:43 +0000 (+0000) Subject: Fixed queue bug X-Git-Tag: initial-import-from-subversion-38251~15267 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=32a88ffefd4cf45572e11d8d9f3c4033707b33a0;p=oweals%2Fgnunet.git Fixed queue bug --- 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;