Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
awlx committed Sep 18, 2023
1 parent 250fb3f commit 82d8e1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wgkex/worker/msg_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

def watch_queue() -> None:
"""Watches the queue for new messages."""
threading.Thread(target=worker, daemon=True).start()
while q.empty() != True:
pick_from_queue()
threading.Thread(target=pick_from_queue, daemon=True).start()

def pick_from_queue() -> None:
"""Picks a message from the queue and processes it."""
Expand Down

0 comments on commit 82d8e1b

Please sign in to comment.