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

do the timeout

This commit is contained in:
2025-09-01 09:57:23 +02:00
parent 97d0380819
commit 3a2cad6637

View File

@@ -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