diff options
author | MaZderMind <git@mazdermind.de> | 2015-09-02 15:18:10 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-09-02 15:18:10 +0200 |
commit | 8646386d09ab6cdabf0b8421cece5c1ddd69633f (patch) | |
tree | 93894d7bc79a0b018275efbc0db524ac6f686570 /voctocore/lib/controlserver.py | |
parent | 13ef8b7d796025f412874349929296e01dab2672 (diff) |
stylistic changes
Diffstat (limited to 'voctocore/lib/controlserver.py')
-rw-r--r-- | voctocore/lib/controlserver.py | 5 |
1 files changed, 4 insertions, 1 deletions
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()) |