From 9c8e79546c55dd14f834b846d21eefddc9be7c00 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 18 May 2023 23:33:26 +0200 Subject: [PATCH] Fixed missing check in receipt culling --- RNS/Transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 923553b..6733180 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -334,7 +334,8 @@ class Transport: for receipt in Transport.receipts: receipt.check_timeout() 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()