fix restart spotify

This commit is contained in:
Lurkars 2022-02-10 16:44:22 +01:00
parent 9b3cc5c4f8
commit dfa222a5f2

View File

@ -138,8 +138,8 @@ class Luniebox(object):
while spotifyd_status != 0 and tries < max_tries:
subprocess.call(["systemctl", "restart", "spotifyd"])
time.sleep(1)
tries += 1
time.sleep(10 * tries)
spotifyd_status = subprocess.call(
["systemctl", "is-active", "--quiet", "spotifyd"])