shielded some tasks

This commit is contained in:
Maxim Devaev
2022-08-05 18:19:31 +03:00
parent eeaeebf7c7
commit d21e74700a
8 changed files with 30 additions and 20 deletions

View File

@@ -352,7 +352,7 @@ class HttpServer:
await self._on_ws_opened()
yield ws
finally:
await self.__close_ws(ws)
await asyncio.shield(self.__close_ws(ws))
async def _ws_loop(self, ws: WsSession) -> WebSocketResponse:
logger = get_logger()