Skip to content

Commit

Permalink
add dependencies to #119
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapersniper committed Mar 16, 2022
1 parent dbc5b2c commit 3a74652
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lavalink/player_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ async def connect(self, deafen: bool = False, channel: Optional[discord.VoiceCha
self._last_resume = datetime.datetime.now(tz=datetime.timezone.utc)
self.connected_at = datetime.datetime.now(datetime.timezone.utc)
self._connected = True
if self._monitor_task is not None:
self._monitor_task.cancel()
self._monitor_task = asyncio.create_task(self._monitor())
self._monitor_task.add_done_callback(task_callback)
if channel:
if self.channel:
self._last_channel_id = self.channel.id
Expand Down

0 comments on commit 3a74652

Please sign in to comment.