mirror of
https://github.com/meshtastic/python.git
synced 2026-09-15 06:52:41 -04:00
Fix traceroute timeout for case of 0-hops
It was not waiting any time.
This commit is contained in:
1 parent
5cc0dae394
commit
d9057c0aaf
1 file changed
+1
-1
@@ -670,7 +670,7 @@ class MeshInterface: # pylint: disable=R0902
|
||||
hopLimit=hopLimit,
|
||||
)
|
||||
# extend timeout based on number of nodes, limit by configured hopLimit
|
||||
waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit)
|
||||
waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit+1)
|
||||
self.waitForTraceRoute(waitFactor)
|
||||
|
||||
def onResponseTraceRoute(self, p: dict):
|
||||
|
||||
Reference in new issue
Block a user