aboutsummaryrefslogtreecommitdiff
path: root/voctogui
diff options
context:
space:
mode:
Diffstat (limited to 'voctogui')
-rw-r--r--voctogui/lib/connection.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py
index 2a6aaf5..71c6588 100644
--- a/voctogui/lib/connection.py
+++ b/voctogui/lib/connection.py
@@ -79,9 +79,8 @@ def on_data(conn, _, leftovers, *args):
log.debug("got line: %r", line)
line = line.strip()
- if command_queue.empty():
- log.debug('command_queue was empty, re-starting on_loop scheduling')
- GObject.idle_add(on_loop)
+ log.debug('re-starting on_loop scheduling')
+ GObject.idle_add(on_loop)
command_queue.put((line, conn))