Commit c52eae68 authored by Olivier R-D's avatar Olivier R-D

close was not threadsafe!

parent 481a9150
......@@ -91,5 +91,5 @@ class BinaryServer(object):
def stop(self):
self.logger.warning("Closing asyncio socket server")
self._server.close()
self.loop.call_soon(self._server.close)
self.loop.run_coro_and_wait(self._server.wait_closed())
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