mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-16 15:52:34 +00:00
Call cancelSending in stopRetransmission
This also removes pending packet from txQueue if it was already in there
This commit is contained in:
@@ -151,7 +151,7 @@ bool ReliableRouter::stopRetransmission(GlobalPacketId key)
|
||||
if (old) {
|
||||
auto numErased = pending.erase(key);
|
||||
assert(numErased == 1);
|
||||
packetPool.release(old->packet);
|
||||
cancelSending(getFrom(old->packet), old->packet->id);
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user