- don't zero send flag after a cancelled transmission
authorBart Polot <bart@net.in.tum.de>
Thu, 18 Jul 2013 12:36:06 +0000 (12:36 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 18 Jul 2013 12:36:06 +0000 (12:36 +0000)
src/mesh/mesh_api.c

index ec4396a705feefe66537eb499c8396a0df7a35cd..bb74eba503acbf61b3c5d3ef06b71200959e01f3 100644 (file)
@@ -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
       {