Skip to content

Commit

Permalink
evaluate stop event in path traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa committed Jan 2, 2023
1 parent 88759d0 commit b32fcef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scapy/contrib/automotive/scanner/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ def enter_state_path(self, path):
return True

for next_state in path[1:]:
if self._stop_scan_event.is_set():
self.cleanup_state()
return False

edge = (self.target_state, next_state)
if not self.enter_state(*edge):
self.state_graph.downrate_edge(edge)
Expand Down

0 comments on commit b32fcef

Please sign in to comment.