Fixed rare exception on mpc when changing speed
This commit is contained in:
parent
3050ee7d71
commit
efec7f030b
@ -49,7 +49,10 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
self.__positionUpdate.set()
|
self.__positionUpdate.set()
|
||||||
|
|
||||||
def setSpeed(self, value):
|
def setSpeed(self, value):
|
||||||
self._mpcApi.setSpeed(value)
|
try:
|
||||||
|
self._mpcApi.setSpeed(value)
|
||||||
|
except MpcHcApi.PlayerNotReadyException:
|
||||||
|
self.setSpeed(value)
|
||||||
|
|
||||||
def __dropIfNotSufficientVersion(self):
|
def __dropIfNotSufficientVersion(self):
|
||||||
self._mpcApi.askForVersion()
|
self._mpcApi.askForVersion()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user