mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Ensure graceful teardown of the reactor thread
This commit is contained in:
@@ -271,12 +271,13 @@ class Reactor(object):
|
||||
with self._lock:
|
||||
self._running = True
|
||||
|
||||
watcher_thread = threading.Thread(target=self._run)
|
||||
watcher_thread.daemon = True
|
||||
watcher_thread.start()
|
||||
worker = threading.Thread(target=self._run)
|
||||
worker.start()
|
||||
|
||||
self._run_until_return(self)
|
||||
|
||||
self.stop()
|
||||
worker.join()
|
||||
|
||||
def _run(self):
|
||||
running = True
|
||||
|
||||
Reference in New Issue
Block a user