|
|
@ -252,7 +252,8 @@ class Server:
|
|
|
|
# TypeError: async() takes 1 positional argument but 3 were given
|
|
|
|
# TypeError: async() takes 1 positional argument but 3 were given
|
|
|
|
log.warning("TypeError exception in the loop {}".format(e))
|
|
|
|
log.warning("TypeError exception in the loop {}".format(e))
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
if self._handler:
|
|
|
|
if self._handler and self._loop.is_running():
|
|
|
|
self._loop.run_until_complete(self._handler.finish_connections())
|
|
|
|
self._loop.run_until_complete(self._handler.finish_connections())
|
|
|
|
server.close()
|
|
|
|
server.close()
|
|
|
|
|
|
|
|
if self._loop.is_running():
|
|
|
|
self._loop.run_until_complete(app.finish())
|
|
|
|
self._loop.run_until_complete(app.finish())
|
|
|
|