From dfa222a5f2fca2f6803b0b20e2e73f59b031e109 Mon Sep 17 00:00:00 2001 From: Lurkars Date: Thu, 10 Feb 2022 16:44:22 +0100 Subject: [PATCH] fix restart spotify --- application/luniebox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/luniebox.py b/application/luniebox.py index 64c25c9..fc0e64c 100644 --- a/application/luniebox.py +++ b/application/luniebox.py @@ -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"])