Skip to content

Commit

Permalink
fix(lava/classes/player.py): adjust disconnect timeout durations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nat1anWasTaken committed May 12, 2024
1 parent 5095dd0 commit 1818463
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lava/classes/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ def stop_disconnect_timeout(self):
self.timeout_task.cancel()

async def __disconnect_timeout(self):
except asyncio.TimeoutError:
await asyncio.sleep(10)
await asyncio.sleep(180)

if self.message:
await self.message.channel.send(
Expand All @@ -372,7 +371,7 @@ async def __disconnect_timeout(self):
)
)

await asyncio.sleep(10)
await asyncio.sleep(30)

await self.guild.voice_client.disconnect(force=False)

Expand Down

0 comments on commit 1818463

Please sign in to comment.