mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/nanocoap_server: 5.03 only for different requests to /separate
This commit is contained in:
parent
b6aa7a6ea5
commit
9dfdf2b319
@ -204,7 +204,7 @@ static ssize_t _separate_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, coap
|
||||
static event_timeout_t event_timeout;
|
||||
static event_callback_t event_timed = EVENT_CALLBACK_INIT(_send_response, &_separate_ctx);
|
||||
|
||||
if (event_timeout_is_pending(&event_timeout)) {
|
||||
if (event_timeout_is_pending(&event_timeout) && !sock_udp_ep_equal(context->remote, &_separate_ctx.remote)) {
|
||||
puts("_separate_handler(): response already scheduled");
|
||||
return coap_build_reply(pkt, COAP_CODE_SERVICE_UNAVAILABLE, buf, len, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user