0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 06:03:52 +01:00

no timeout

This commit is contained in:
2025-08-31 21:56:46 +02:00
parent 0ac7a44a7e
commit 97d0380819

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: if current_process and current_process.poll() is None:
try: try:
current_process.terminate() current_process.terminate()
current_process.wait(timeout=2) current_process.wait()
except (subprocess.TimeoutExpired, ProcessLookupError): except (subprocess.TimeoutExpired, ProcessLookupError):
pass pass
current_process = next_process 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: if current_process and current_process.poll() is None:
try: try:
current_process.terminate() current_process.terminate()
current_process.wait(timeout=2) current_process.wait()
except (subprocess.TimeoutExpired, ProcessLookupError): except (subprocess.TimeoutExpired, ProcessLookupError):
pass pass
current_process = next_process current_process = next_process