diff options
Diffstat (limited to 'kvmd/htserver.py')
-rw-r--r-- | kvmd/htserver.py | 6 |
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) |