Adjusted timeouts

This commit is contained in:
Mark Qvist 2023-11-02 12:25:36 +01:00
parent 082026ca1b
commit 82bb479957
3 changed files with 4 additions and 4 deletions

View file

@ -517,7 +517,7 @@ class Browser:
self.status = Browser.PATH_REQUESTED
self.update_display()
pr_time = time.time()
pr_time = time.time()+RNS.Transport.first_hop_timeout(self.destination_hash)
while not RNS.Transport.has_path(self.destination_hash):
now = time.time()
if now > pr_time+self.timeout:
@ -770,7 +770,7 @@ class Browser:
self.status = Browser.PATH_REQUESTED
self.update_display()
pr_time = time.time()
pr_time = time.time()+RNS.Transport.first_hop_timeout(self.destination_hash)
while not RNS.Transport.has_path(self.destination_hash):
now = time.time()
if now > pr_time+self.timeout: