From: Bart Polot Date: Thu, 18 Jul 2013 12:36:06 +0000 (+0000) Subject: - don't zero send flag after a cancelled transmission X-Git-Tag: initial-import-from-subversion-38251~8176 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1816215794233790bc34a6a0214efa1104a23094;p=oweals%2Fgnunet.git - don't zero send flag after a cancelled transmission --- 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 {