From d21e74700a5b236ea19981ff74724790a8bc4efc Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 5 Aug 2022 18:19:31 +0300 Subject: shielded some tasks --- kvmd/htserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/htserver.py') diff --git a/kvmd/htserver.py b/kvmd/htserver.py index 35f4b388..16d152b3 100644 --- a/kvmd/htserver.py +++ b/kvmd/htserver.py @@ -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() -- cgit v1.2.3