Skip to content

Commit

Permalink
tracer: Fix teardown with a not-yet-enabled FileMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Sep 19, 2024
1 parent d171fe0 commit 91f78cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frida_tools/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,10 @@ def __init__(self, reactor: Reactor, decorate: bool) -> None:

def close(self) -> None:
for monitor in self._repo_monitors.values():
monitor.disable()
try:
monitor.disable()
except:
pass
self._repo_monitors.clear()

super().close()
Expand Down

0 comments on commit 91f78cc

Please sign in to comment.