Fixed: Load failure now decreases load count

This commit is contained in:
P.M. Kuipers 2021-05-16 21:12:33 +02:00
parent bd448406b8
commit a2b5bb5f10

View File

@ -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))