(event: Event)
| 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 |
nothing calls this directly
no test coverage detected