Skip to content

Commit

Permalink
Fix infinite loop in QueueMessageHandler
Browse files Browse the repository at this point in the history
Co-authored-by: Daisuke Sato <daisukes@cmu.edu>
  • Loading branch information
bjsowa and daisukes committed Dec 22, 2024
1 parent 460d202 commit 977d8b3
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 977d8b3

Please sign in to comment.