mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 01:42:53 +03:00
Async: Report async delayed PDU when request handler is re-invoked
This commit is contained in:
1 parent
b9526c7ae0
commit
4c7ce99e09
1 file changed
+2
@@ -4681,6 +4681,8 @@ coap_check_async(coap_context_t *context, coap_tick_t now) {
|
||||
LL_FOREACH_SAFE(context->async_state, async, tmp) {
|
||||
if (async->delay != 0 && async->delay <= now) {
|
||||
/* Send off the request to the application */
|
||||
coap_log_debug("Async PDU presented to app.\n");
|
||||
coap_show_pdu(COAP_LOG_DEBUG, async->pdu);
|
||||
handle_request(context, async->session, async->pdu, NULL);
|
||||
|
||||
/* Remove this async entry as it has now fired */
|
||||
|
||||
Reference in new issue
Block a user