Commit 388f3d71 by Oleksandr Barabash

silence_event_loop_closed changed to do nothing on windows

parent 27fd1ccd
......@@ -31,11 +31,7 @@ def silence_event_loop_closed(func):
@wraps(func)
def wrapper(self, *args, **kwargs):
""" wrapper """
try:
return func(self, *args, **kwargs)
except RuntimeError as e:
if str(e) != 'Event loop is closed':
raise
pass
return wrapper
......@@ -210,9 +206,7 @@ class KeyboardListener:
data = (await self.io_loop.run_in_executor(None, input, ""))
try:
if data.strip().lower() == "q":
self.packet_logger.save()
self.server.stop()
return
return self.stop()
except Exception:
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