From 2ea963ed03721d855317d64341bce723fb9c340c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 2 Nov 2023 04:35:10 +0100 Subject: [PATCH] Fixed missing timeout calculation --- RNS/Utilities/rnprobe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Utilities/rnprobe.py b/RNS/Utilities/rnprobe.py index ae628a3..eedd6da 100644 --- a/RNS/Utilities/rnprobe.py +++ b/RNS/Utilities/rnprobe.py @@ -115,7 +115,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v print("\rSent "+str(size)+" byte probe to "+RNS.prettyhexrep(destination_hash)+more+" ", end=" ") - _timeout = time.time() + (timeout or DEFAULT_TIMEOUT) + _timeout = time.time() + (timeout or DEFAULT_TIMEOUT+reticulum.get_first_hop_timeout(destination_hash)) i = 0 while receipt.status == RNS.PacketReceipt.SENT and not time.time() > _timeout: time.sleep(0.1)