Async: Report async delayed PDU when request handler is re-invoked

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-02-21 14:34:02 +00:00
1 parent b9526c7ae0
commit 4c7ce99e09
1 file changed
+2
+2
View File
@@ -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 */