aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-01-10 11:18:58 +0100
committerMaZderMind <git@mazdermind.de>2016-01-10 11:21:34 +0100
commitfd5a9c94892e0a890b6e0702c745e50e48f16f23 (patch)
tree6045e0341ee31175e9da610239e2f4f17d83ea22
parentc0fe1f098340d65706a49d64f166fa568bbbedb3 (diff)
don't stop scheduling on_loop in case of an input error, #43
-rw-r--r--voctocore/lib/controlserver.py2
-rw-r--r--voctogui/lib/connection.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/voctocore/lib/controlserver.py b/voctocore/lib/controlserver.py
index 2f25ca6..2dc6e1c 100644
--- a/voctocore/lib/controlserver.py
+++ b/voctocore/lib/controlserver.py
@@ -86,7 +86,7 @@ class ControlServer(TCPMultiConnection):
words = line.split()
if len(words) < 1:
self.log.debug('command_queue is empty again, stopping on_loop scheduling')
- return False
+ return True
command = words[0]
args = words[1:]
diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py
index bc8b867..2a6aaf5 100644
--- a/voctogui/lib/connection.py
+++ b/voctogui/lib/connection.py
@@ -108,7 +108,7 @@ def on_loop():
words = line.split()
if len(words) < 1:
log.debug('command_queue is empty again, stopping on_loop scheduling')
- return False
+ return True
signal = words[0]
args = words[1:]