Skip to content

Commit

Permalink
fixup! gcoap: Suppress retransmissions when ACK was received
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Sep 2, 2020
1 parent fb47e17 commit 094e9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/application_layer/gcoap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static void _find_req_memo(gcoap_request_memo_t **memo_ptr, coap_pkt_t *src_pdu,
static void _expire_request(gcoap_request_memo_t *memo)
{
DEBUG("coap: received timeout message\n");
if (memo->state == GCOAP_MEMO_RETRANSMIT || memo->state == GCOAP_MEMO_WAIT) {
if ((memo->state == GCOAP_MEMO_RETRANSMIT) || (memo->state == GCOAP_MEMO_WAIT)) {
memo->state = GCOAP_MEMO_TIMEOUT;
/* Pass response to handler */
if (memo->resp_handler) {
Expand Down

0 comments on commit 094e9eb

Please sign in to comment.