fix restart spotify
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user