Skip to content

Commit

Permalink
Fix busy-loop in opus.py DecodeManager (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolabura authored Jun 10, 2022
1 parent 3428549 commit cb5a21f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def run(self):
try:
data = self.decode_queue.pop(0)
except IndexError:
time.sleep(0.001)
continue

try:
Expand Down

0 comments on commit cb5a21f

Please sign in to comment.