X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fgnunet-service-mesh_channel.c;h=bee65c65c988d42ee7882db13a18066f1dbfdf82;hb=33354bfe79f97acb2c98d08fa4f1c32f2d2b1220;hp=519dda89d1c16ee6425c15c5cf7dd94b57b2a7c8;hpb=28653a4922fd5a2d8fb7f72d799c9e79a2400abe;p=oweals%2Fgnunet.git diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 519dda89d..bee65c65c 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c @@ -718,7 +718,7 @@ channel_send_ack (struct MeshChannel *ch, int fwd) * Channel was ACK'd by remote peer, mark as ready and cancel retransmission. * * @param ch Channel to mark as ready. - * @param fwd Was the ACK message sent fwd? (dest->root, SYNACK) + * @param fwd Was the ACK message a FWD ACK? (dest->root, SYNACK) */ static void channel_confirm (struct MeshChannel *ch, int fwd) @@ -1191,6 +1191,9 @@ GMCH_send_data_ack (struct MeshChannel *ch, int fwd) void GMCH_allow_client (struct MeshChannel *ch, int fwd) { + if (MESH_CHANNEL_READY != ch->state) + return; + send_client_ack (ch, fwd); }