Call cancelSending in stopRetransmission

This also removes pending packet from txQueue if it was already in there
pull/1444/head
GUVWAF 2022-05-07 15:39:14 +02:00
rodzic c07976438b
commit 348e78718d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;