Skip to content

Commit

Permalink
address comment from morgaesis
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-je committed Nov 20, 2021
1 parent 5b108b1 commit e51aafe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,7 @@ async def attempt_disconnect(self):
if self.voice_client.is_playing():
return

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

self._stop()
Expand Down

0 comments on commit e51aafe

Please sign in to comment.