Skip to content

Commit

Permalink
We can sleep for a second
Browse files Browse the repository at this point in the history
  • Loading branch information
awlx committed Sep 18, 2023
1 parent 3c0c6a2 commit cbaaf00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgkex/worker/msg_queue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import threading
from queue import Queue
from time import sleep
from wgkex.common import logger
from wgkex.worker.netlink import link_handler
from wgkex.worker.netlink import WireGuardClient
Expand Down Expand Up @@ -50,3 +51,4 @@ def pick_from_queue() -> None:
q.task_done()
else:
logger.debug("Queue is empty")
sleep(1)

0 comments on commit cbaaf00

Please sign in to comment.