Skip to content

Commit

Permalink
Adding a verification to error when playing song
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelSolVargas committed Jan 25, 2023
1 parent afb223e commit 75de604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Parallelism/PlayerProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ async def __playSong(self, song: Song) -> None:
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
Expand Down

0 comments on commit 75de604

Please sign in to comment.