Skip to content

Commit d9057c0

Browse files
committed
Fix traceroute timeout for case of 0-hops
It was not waiting any time.
1 parent 5cc0dae commit d9057c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meshtastic/mesh_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def sendTraceRoute(
670670
hopLimit=hopLimit,
671671
)
672672
# extend timeout based on number of nodes, limit by configured hopLimit
673-
waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit)
673+
waitFactor = min(len(self.nodes) - 1 if self.nodes else 0, hopLimit+1)
674674
self.waitForTraceRoute(waitFactor)
675675

676676
def onResponseTraceRoute(self, p: dict):

0 commit comments

Comments
 (0)