MCPcopy Create free account
hub / github.com/AdbAutoPlayer/AdbAutoPlayer / handler

Function handler

src-tauri/src-python/adb_auto_player/__main__.py:565–575  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

563 )
564
565 def handler(event: Event):
566 for process in task_processes.values():
567 if process and process.is_alive():
568 process.terminate()
569 process.join()
570 _executor.shutdown(wait=False, cancel_futures=True)
571 try:
572 AdbClientHelper.get_adb_client().server_kill()
573 except Exception as e:
574 logging.debug(f"Failed to kill ADB server on shutdown: {e}")
575 sys.exit(0)
576
577 Listener.listen(app, "kill-python", handler)
578

Callers

nothing calls this directly

Calls 1

get_adb_clientMethod · 0.80

Tested by

no test coverage detected