summaryrefslogtreecommitdiff
path: root/kvmd/htserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/htserver.py')
-rw-r--r--kvmd/htserver.py2
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()