Skip to content

Commit

Permalink
Fix players not catching trackstuckevents
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke authored Mar 24, 2018
1 parent 6b051de commit d49ad84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lavalink/PlayerManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ async def seek(self, pos: int):
await self._lavalink.ws.send(op='seek', guildId=self.guild_id, position=pos)

async def handle_event(self, event):
if isinstance(event, (TrackStartEvent, TrackExceptionEvent)) or \
isinstance(event, TrackEndEvent) and event.reason == 'FINISHED':
if isinstance(event, (TrackStuckEvent, TrackExceptionEvent)) or \
(isinstance(event, TrackEndEvent) and event.reason == 'FINISHED'):
await self.play()


Expand Down

0 comments on commit d49ad84

Please sign in to comment.