mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
tryfix #2228 as suggested by @mverch67
This commit is contained in:
parent
c8399b7256
commit
f1c457f0c3
@ -148,7 +148,10 @@ bool ReliableRouter::stopRetransmission(GlobalPacketId key)
|
|||||||
if (old) {
|
if (old) {
|
||||||
auto numErased = pending.erase(key);
|
auto numErased = pending.erase(key);
|
||||||
assert(numErased == 1);
|
assert(numErased == 1);
|
||||||
|
// remove the 'original' (identified by originator and packet->id) from the txqueue and free it
|
||||||
cancelSending(getFrom(old->packet), old->packet->id);
|
cancelSending(getFrom(old->packet), old->packet->id);
|
||||||
|
// now free the pooled copy for retransmission too. tryfix for #2228
|
||||||
|
packetPool.release(old->packet);
|
||||||
return true;
|
return true;
|
||||||
} else
|
} else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user