mirror of
https://github.com/meshtastic/python.git
synced 2026-04-17 13:31:43 -04:00
Fix traceroute timeout for case of 0-hops
It was not waiting any time.
This commit is contained in:
@@ -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