coap_net.c: Fix unexpected Q-Block NON restart

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-10-25 18:18:51 +01:00
1 parent fc83bf3f69
commit 21f09ac337
1 file changed
+1 -1
+1 -1
View File
@@ -4567,7 +4567,7 @@ coap_dispatch(coap_context_t *context, coap_session_t *session,
LL_FOREACH(session->lg_xmit, lg_xmit) {
if ((lg_xmit->option == COAP_OPTION_Q_BLOCK1 || lg_xmit->option == COAP_OPTION_Q_BLOCK2) &&
lg_xmit->last_all_sent == 0) {
lg_xmit->last_all_sent == 0 && lg_xmit->sent_pdu->type == COAP_MESSAGE_CON) {
doing_q_block = 1;
break;
}