From 1816215794233790bc34a6a0214efa1104a23094 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 18 Jul 2013 12:36:06 +0000 Subject: [PATCH] - don't zero send flag after a cancelled transmission --- src/mesh/mesh_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index ec4396a70..bb74eba50 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1182,7 +1182,6 @@ send_callback (void *cls, size_t size, void *buf) continue; } t->packet_size = 0; - t->allow_send = GNUNET_NO; GNUNET_assert (size >= th->size); dmsg = (struct GNUNET_MESH_LocalData *) cbuf; mh = (struct GNUNET_MessageHeader *) &dmsg[1]; @@ -1198,6 +1197,7 @@ send_callback (void *cls, size_t size, void *buf) dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA); LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload type %s\n", GNUNET_MESH_DEBUG_M2S (ntohs (mh->type))); + t->allow_send = GNUNET_NO; } else { -- 2.25.1