mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 23:39:15 +02:00
do the timeout
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user