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

OH MY FUCKING GOD

This commit is contained in:
2025-12-13 21:33:05 +01:00
parent cc7e4ace2c
commit 78c8465607
2 changed files with 6 additions and 33 deletions

View File

@@ -122,7 +122,7 @@ class ModuleManager:
for module in self.simple_modules:
if module:
try: module.shutdown()
except Exception: traceback.print_exc(file=self.logger.output)
except BaseException: traceback.print_exc(file=self.logger.output)
def load_modules(self):
"""Loads the modules into memory"""
for file in MODULES_DIR.glob("*"):
@@ -198,6 +198,7 @@ class RadioPlayer:
def shutdown(self):
if self.procman: self.procman.stop_all()
self.modman.shutdown_modules()
self.logger.output.close()
def handle_sigint(self, signum: int, frame: types.FrameType | None):