fix restart spotify
This commit is contained in:
parent
9b3cc5c4f8
commit
dfa222a5f2
@ -138,8 +138,8 @@ class Luniebox(object):
|
|||||||
|
|
||||||
while spotifyd_status != 0 and tries < max_tries:
|
while spotifyd_status != 0 and tries < max_tries:
|
||||||
subprocess.call(["systemctl", "restart", "spotifyd"])
|
subprocess.call(["systemctl", "restart", "spotifyd"])
|
||||||
time.sleep(1)
|
|
||||||
tries += 1
|
tries += 1
|
||||||
|
time.sleep(10 * tries)
|
||||||
spotifyd_status = subprocess.call(
|
spotifyd_status = subprocess.call(
|
||||||
["systemctl", "is-active", "--quiet", "spotifyd"])
|
["systemctl", "is-active", "--quiet", "spotifyd"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user