mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 03:37:46 +00:00
[mesh-forwarder] avoid assert when processing direct transmissions (#3614)
This commit is contained in:
@@ -280,16 +280,11 @@ Message *MeshForwarder::GetDirectTransmission(void)
|
||||
|
||||
#endif
|
||||
|
||||
case OT_ERROR_DROP:
|
||||
case OT_ERROR_NO_BUFS:
|
||||
default:
|
||||
mSendQueue.Dequeue(*curMessage);
|
||||
LogMessage(kMessageDrop, *curMessage, NULL, error);
|
||||
curMessage->Free();
|
||||
continue;
|
||||
|
||||
default:
|
||||
assert(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user