Safety net: encrypt DB on process exit if auth is configured.
()
| 308 | # Stop individual threads (fast timeouts - systemd will SIGKILL after 5s anyway) |
| 309 | handle_exit_display(sig, frame, display_thread, exit_process=False) |
| 310 | |
| 311 | if display_thread and display_thread.is_alive(): |
| 312 | display_thread.join(timeout=1) |
| 313 | if ragnar_thread and ragnar_thread.is_alive(): |
| 314 | ragnar_thread.join(timeout=1) |
| 315 | if web_thread and web_thread.is_alive(): |
| 316 | web_thread.join(timeout=1) |
| 317 | |
| 318 | logger.info("Main loop finished. Clean exit.") |
| 319 | sys.exit(0) |
nothing calls this directly
no test coverage detected