mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 13:38:07 +00:00
[coap] finish cached coap response before sending (#4175)
This commit is contained in:
@@ -601,6 +601,7 @@ void CoapBase::ProcessReceivedRequest(Message &aMessage, const Ip6::MessageInfo
|
|||||||
switch (mResponsesQueue.GetMatchedResponseCopy(aMessage, aMessageInfo, &cachedResponse))
|
switch (mResponsesQueue.GetMatchedResponseCopy(aMessage, aMessageInfo, &cachedResponse))
|
||||||
{
|
{
|
||||||
case OT_ERROR_NONE:
|
case OT_ERROR_NONE:
|
||||||
|
cachedResponse->Finish();
|
||||||
error = Send(*cachedResponse, aMessageInfo);
|
error = Send(*cachedResponse, aMessageInfo);
|
||||||
// fall through
|
// fall through
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user