mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/gcoap: Don't assume success after exhausing known errors
This commit is contained in:
parent
2e70f29d4f
commit
e9736e925e
@ -122,7 +122,7 @@ static void _resp_handler(const gcoap_request_memo_t *memo, coap_pkt_t* pdu,
|
||||
printf("gcoap: timeout for msg ID %02u\n", coap_get_id(pdu));
|
||||
return;
|
||||
}
|
||||
else if (memo->state == GCOAP_MEMO_ERR) {
|
||||
else if (memo->state != GCOAP_MEMO_RESP) {
|
||||
printf("gcoap: error in response\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user