Commit 27fd1ccd by Oleksandr Barabash

shutting down server directly

parent 1538db64
...@@ -210,7 +210,9 @@ class KeyboardListener: ...@@ -210,7 +210,9 @@ class KeyboardListener:
data = (await self.io_loop.run_in_executor(None, input, "")) data = (await self.io_loop.run_in_executor(None, input, ""))
try: try:
if data.strip().lower() == "q": if data.strip().lower() == "q":
return self.stop() self.packet_logger.save()
self.server.stop()
return
except Exception: except Exception:
pass pass
......
Markdown is supported
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