From a2b5bb5f109edb05f59c96136e69662e7a47907a Mon Sep 17 00:00:00 2001 From: "P.M. Kuipers" Date: Sun, 16 May 2021 21:12:33 +0200 Subject: [PATCH] Fixed: Load failure now decreases load count --- mediaserver/mediaserver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mediaserver/mediaserver.py b/mediaserver/mediaserver.py index 6ee950d..79e2349 100755 --- a/mediaserver/mediaserver.py +++ b/mediaserver/mediaserver.py @@ -362,6 +362,7 @@ class MediaService(dbus.service.Object): print("Player state: {0}".format(state)) if state == "LOADING": print("Failure during LOAD: {0}".format(error)) + self.loadcount -= 1 self.OnLoadFail(error) else: print("Failure during RUN: {0}".format(error))