if in-order unreliable, advance to next message even if we skip a mid
authorChristian Grothoff <christian@grothoff.org>
Fri, 27 Jan 2017 21:15:26 +0000 (22:15 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 27 Jan 2017 21:15:26 +0000 (22:15 +0100)
src/cadet/gnunet-service-cadet-new_channel.c

index 3bcf5ad0b2a8a23e45c5bd893c6fd6283477b4c3..ebc566c833c70513d18f6f2dfb5d56bcd59deb18 100644 (file)
@@ -1775,7 +1775,8 @@ GCCH_handle_local_ack (struct CadetChannel *ch,
   }
 
   if ( (com->mid.mid != ch->mid_recv.mid) &&
-       (GNUNET_NO == ch->out_of_order) )
+       (GNUNET_NO == ch->out_of_order) &&
+       (GNUNET_YES == ch->reliable) )
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG,
          "Got LOCAL_ACK, %s-%X ready to receive more data (but next one is out-of-order %u vs. %u)!\n",