mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
Check if there's something there before we free it
This commit is contained in:
parent
f1c457f0c3
commit
568899031d
@ -151,6 +151,7 @@ bool ReliableRouter::stopRetransmission(GlobalPacketId key)
|
||||
// remove the 'original' (identified by originator and packet->id) from the txqueue and free it
|
||||
cancelSending(getFrom(old->packet), old->packet->id);
|
||||
// now free the pooled copy for retransmission too. tryfix for #2228
|
||||
if (old->packet)
|
||||
packetPool.release(old->packet);
|
||||
return true;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user