Skip to content

Commit

Permalink
Fix infinite loop in QueueMessageHandler (#987)
Browse files Browse the repository at this point in the history
Co-authored-by: Daisuke Sato <[email protected]>
  • Loading branch information
bjsowa and daisukes authored Dec 26, 2024
1 parent 90ee871 commit c6a5ae8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def run(self):
traceback.print_exc(file=sys.stderr)
while self.time_remaining() == 0 and len(self.queue) > 0:
try:
MessageHandler.handle_message(self, self.queue[0])
msg = self.queue.popleft()
MessageHandler.handle_message(self, msg)
except Exception:
traceback.print_exc(file=sys.stderr)

0 comments on commit c6a5ae8

Please sign in to comment.