From 94093e6e1bf52c324d6c6141996922d35e9edfdf Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 28 Aug 2016 14:45:26 +0200 Subject: accept exit as an alias to quit on the contro-server, fixes #95 --- voctocore/lib/commands.py | 2 +- voctocore/lib/controlserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'voctocore') diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py index 92db70e..a5b6ab1 100644 --- a/voctocore/lib/commands.py +++ b/voctocore/lib/commands.py @@ -91,7 +91,7 @@ class ControlServerCommands(object): helplines.append(command_sig) - helplines.append('\t'+'quit') + helplines.append('\t'+'quit / exit') helplines.append("\n") helplines.append("Source-Names:") diff --git a/voctocore/lib/controlserver.py b/voctocore/lib/controlserver.py index 5544e7b..4c506be 100644 --- a/voctocore/lib/controlserver.py +++ b/voctocore/lib/controlserver.py @@ -49,7 +49,7 @@ class ControlServer(TCPMultiConnection): line = line.strip() # 'quit' = remote wants us to close the connection - if line == 'quit': + if line == 'quit' or line == 'exit': self.log.info("Client asked us to close the Connection") self.close_connection(conn) return False -- cgit v1.2.3