From b1a6a132e3a7478a4c06fe489a54a7a59a9e7837 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 30 Jul 2012 15:04:05 +0000 Subject: [PATCH] - timeout fix by harsha --- src/mesh/mesh_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 8ac1efa61..516e877e8 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -588,6 +588,7 @@ remove_peer_from_tunnel (struct GNUNET_MESH_Peer *p) /** * Notify client that the transmission has timed out + * * @param cls closure * @param tc task context */ @@ -601,6 +602,7 @@ timeout_transmission (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_CONTAINER_DLL_remove (mesh->th_head, mesh->th_tail, th); if (GNUNET_YES == th_is_payload (th)) th->notify (th->notify_cls, 0, NULL); + th->tunnel->packet_size = 0; GNUNET_free (th); if ((NULL == mesh->th_head) && (NULL != mesh->th)) { -- 2.25.1