From 6cdc42f72c4fe38179e7eeb43f946dcd63bb9d18 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Sat, 11 Oct 2025 19:14:02 +0200 Subject: [PATCH] timeout --- radioPlayer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index 93a9f61..24e89b9 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -242,15 +242,15 @@ def play_playlist(playlist_path, custom_playlist: bool=False): for i, (track, to_fade_in, to_fade_out, official, args) in enumerate(playlist): if exit_pending: logger.info("Quit received, waiting for song end.") - procman.wait_all() + procman.wait_all(5) exit() elif reload_pending: logger.info("Reload requested, restarting with new arguments after song ending") - procman.wait_all() + procman.wait_all(2) return "reload" elif return_pending: logger.info("Return reached, next song will reload the playlist.") - procman.wait_all() + procman.wait_all(2) return track_path = os.path.abspath(os.path.expanduser(track)) for module in simple_modules: module.on_new_track(i, track_path, to_fade_in, to_fade_out, official)