Fixed missing check in receipt culling

This commit is contained in:
Mark Qvist 2023-05-18 23:33:26 +02:00
parent 4c272aa536
commit 9c8e79546c

View File

@ -334,7 +334,8 @@ class Transport:
for receipt in Transport.receipts: for receipt in Transport.receipts:
receipt.check_timeout() receipt.check_timeout()
if receipt.status != RNS.PacketReceipt.SENT: if receipt.status != RNS.PacketReceipt.SENT:
Transport.receipts.remove(receipt) if receipt in Transport.receipts:
Transport.receipts.remove(receipt)
Transport.receipts_last_checked = time.time() Transport.receipts_last_checked = time.time()