Commit f065ee0f authored by Michal Vaner's avatar Michal Vaner
Browse files

Return "wait for all threads" code

It was decided it can be used to inform user when the process really

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent e2157e03
......@@ -461,6 +461,13 @@ class XfroutServer:
if self._unix_socket_server:
# Wait for all threads to terminate
main_thread = threading.currentThread()
for th in threading.enumerate():
if th is main_thread:
def command_handler(self, cmd, args):
if cmd == "shutdown":
self._log.log_message("info", "Received shutdown command.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment