0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

add a shutdown function

This commit is contained in:
2025-11-23 12:14:18 +01:00
parent c87b5f7a27
commit 5e0bc2c99c
3 changed files with 8 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ class RadioPlayer:
def shutdown(self):
self.procman.stop_all()
[module.shutdown() for module in self.simple_modules if module]
def handle_sigint(self, signum, frame):
with self.exit_lock: