From 8646386d09ab6cdabf0b8421cece5c1ddd69633f Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 2 Sep 2015 15:18:10 +0200 Subject: stylistic changes --- voctocore/lib/controlserver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/voctocore/lib/controlserver.py b/voctocore/lib/controlserver.py index 631770b..70b9213 100644 --- a/voctocore/lib/controlserver.py +++ b/voctocore/lib/controlserver.py @@ -83,6 +83,8 @@ class ControlServer(TCPMultiConnection): command = words[0] args = words[1:] + self.log.debug("Processing Command %r with args %s", command, args) + try: command_function = self.commands.__class__.__dict__[command] @@ -124,7 +126,8 @@ class ControlServer(TCPMultiConnection): return False if queue.empty(): - return True + return True + message = queue.get() try: conn.send(message.encode()) -- cgit v1.2.3