diff options
author | Devaev Maxim <[email protected]> | 2018-12-03 06:58:40 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-03 06:58:40 +0300 |
commit | a57e5cdaa92d6843057321e3b470c396a9e593a8 (patch) | |
tree | e9d2f0ce49f19d031fe56d984df645f679b9492d | |
parent | 3a989096883b8cb8fac30035b37f2b59cacc5c50 (diff) |
refactoring
-rw-r--r-- | kvmd/apps/kvmd/server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py index 7b3192ae..222712d3 100644 --- a/kvmd/apps/kvmd/server.py +++ b/kvmd/apps/kvmd/server.py @@ -104,9 +104,9 @@ def _wrap_exceptions_for_web(msg: str) -> Callable: class _Events(Enum): INFO_STATE = "info_state" - STREAMER_STATE = "streamer_state" ATX_STATE = "atx_state" MSD_STATE = "msd_state" + STREAMER_STATE = "streamer_state" class Server: # pylint: disable=too-many-instance-attributes @@ -228,9 +228,9 @@ class Server: # pylint: disable=too-many-instance-attributes await self.__register_socket(ws) await asyncio.gather(*[ self.__broadcast_event(_Events.INFO_STATE, (await self.__make_info())), - self.__broadcast_event(_Events.STREAMER_STATE, (await self.__streamer.get_state())), self.__broadcast_event(_Events.ATX_STATE, self.__atx.get_state()), self.__broadcast_event(_Events.MSD_STATE, self.__msd.get_state()), + self.__broadcast_event(_Events.STREAMER_STATE, (await self.__streamer.get_state())), ]) async for msg in ws: if msg.type == aiohttp.web.WSMsgType.TEXT: @@ -396,9 +396,9 @@ class Server: # pylint: disable=too-many-instance-attributes await self.__remove_socket(ws) async def __on_cleanup(self, _: aiohttp.web.Application) -> None: - await self.__hid.cleanup() await self.__streamer.cleanup() await self.__msd.cleanup() + await self.__hid.cleanup() @_system_task async def __hid_watchdog(self) -> None: |