summaryrefslogtreecommitdiff
path: root/kvmd/htserver.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-06-19 04:10:42 +0300
committerMaxim Devaev <[email protected]>2022-06-19 04:10:42 +0300
commit805ff9dd5f43d32caead051c2ff18b72be0672c9 (patch)
treed7d961344f04961141d8234ff5a6c6392f0b4657 /kvmd/htserver.py
parent74e81b6e0345f37695c6cb05dd4fa2e489fd9026 (diff)
ro_cleanup_delay
Diffstat (limited to 'kvmd/htserver.py')
-rw-r--r--kvmd/htserver.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/htserver.py b/kvmd/htserver.py
index eb364767..94d2c3ee 100644
--- a/kvmd/htserver.py
+++ b/kvmd/htserver.py
@@ -359,9 +359,11 @@ class HttpServer:
)
], return_exceptions=True)
- async def _close_all_wss(self) -> None:
- for ws in self._get_wss():
+ async def _close_all_wss(self) -> bool:
+ wss = self._get_wss()
+ for ws in wss:
await self.__close_ws(ws)
+ return bool(wss)
def _get_wss(self) -> List[WsSession]:
return list(self.__ws_sessions)