diff options
author | Maxim Devaev <[email protected]> | 2022-08-05 18:19:31 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-05 18:19:31 +0300 |
commit | d21e74700a5b236ea19981ff74724790a8bc4efc (patch) | |
tree | 9bda87884ece795b05a81bfc4863b4562e84d9ca /kvmd/htserver.py | |
parent | eeaeebf7c76385536eb8f5daaea5f21bda18b735 (diff) |
shielded some tasks
Diffstat (limited to 'kvmd/htserver.py')
-rw-r--r-- | kvmd/htserver.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |