Skip to content

Commit

Permalink
Merge pull request #54 from michael-je/hotfix-attempt-disconnect
Browse files Browse the repository at this point in the history
🔥hotfix: mistake from #47
  • Loading branch information
gardarandri authored Nov 20, 2021
2 parents 7e66959 + e51aafe commit a15158d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ async def attempt_disconnect(self):
if self.voice_client.is_playing():
return

if self.last_played_time < self.DISCONNECT_TIMER_SECONDS:
if time.time() - self.last_played_time < self.DISCONNECT_TIMER_SECONDS:
return

self._stop()
Expand Down

0 comments on commit a15158d

Please sign in to comment.