From a78c753e8cf87cb0aa0619f68ca09d0a29453461 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Sun, 10 May 2020 16:18:51 +0200 Subject: [PATCH] [RIOT] coap_io_riot.c: fix timeout parameter in coap_io_process() --- src/coap_io_riot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coap_io_riot.c b/src/coap_io_riot.c index fd07fd99..d641fb91 100644 --- a/src/coap_io_riot.c +++ b/src/coap_io_riot.c @@ -191,7 +191,7 @@ coap_io_process(coap_context_t *ctx, uint32_t timeout_ms) { coap_ticks(&before); timeout = - coap_io_prepare_io(ctx, sockets, ARRAY_SIZE(sockets), &num_sockets, now); + coap_io_prepare_io(ctx, sockets, ARRAY_SIZE(sockets), &num_sockets, before); if (timeout == 0 || timeout_ms < timeout) timeout = timeout_ms;