Adding a verification to error when playing song

This commit is contained in:
Rafael Vargas 2023-01-25 13:27:41 -03:00
parent afb223eadd
commit 75de60470f

View File

@ -157,6 +157,8 @@ class PlayerProcess(Process):
self.__playerLock.release()
def __playNext(self, error) -> None:
if error is not None:
print(f'[ERROR PLAYING SONG] -> {error}')
with self.__playlistLock:
with self.__playerLock:
if self.__forceStop: # If it's forced to stop player