You've already forked RadioPlayer
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:
@@ -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()
|
current_process.wait(5)
|
||||||
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()
|
current_process.wait(5)
|
||||||
except (subprocess.TimeoutExpired, ProcessLookupError):
|
except (subprocess.TimeoutExpired, ProcessLookupError):
|
||||||
pass
|
pass
|
||||||
current_process = next_process
|
current_process = next_process
|
||||||
|
|||||||
Reference in New Issue
Block a user