Fixed PacketTrack with UnknownPacket

This patch fixes an issue with rx() for an UnknownPacket type
trying to access ackMsgNo (reply ack)
This commit is contained in:
Hemna 2024-04-24 10:45:47 -04:00
parent 992485e9c7
commit 2b2bf6c92d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class PacketTrack(objectstore.ObjectStoreMixin):
self._remove(packet.msgNo)
elif isinstance(packet, core.RejectPacket):
self._remove(packet.msgNo)
elif packet.ackMsgNo:
elif hasattr(packet, "ackMsgNo"):
# Got a piggyback ack, so remove the original message
self._remove(packet.ackMsgNo)