From 3a2cad66379dece4a17d688030d165fff630412b Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Mon, 1 Sep 2025 09:57:23 +0200 Subject: [PATCH] do the timeout --- radioPlayer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radioPlayer.py b/radioPlayer.py index e2bc134..e493bf8 100644 --- a/radioPlayer.py +++ b/radioPlayer.py @@ -391,7 +391,7 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first= if current_process and current_process.poll() is None: try: current_process.terminate() - current_process.wait() + current_process.wait(5) except (subprocess.TimeoutExpired, ProcessLookupError): pass current_process = next_process @@ -506,7 +506,7 @@ def play_playlist(playlist_path, custom_playlist: bool=False, play_newest_first= if current_process and current_process.poll() is None: try: current_process.terminate() - current_process.wait() + current_process.wait(5) except (subprocess.TimeoutExpired, ProcessLookupError): pass current_process = next_process