summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/serial.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-08 05:24:47 +0300
committerDevaev Maxim <[email protected]>2020-09-08 05:24:47 +0300
commit605b67ca761bdb5f5c3b255434f30624fa82a6c1 (patch)
treed7821a55ca5ec9e2da6b75bf2956dea6345de1a1 /kvmd/plugins/hid/serial.py
parent4cc60e4d528c669af0c1f7478160ff57a4691af7 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r--kvmd/plugins/hid/serial.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index 5abab1f5..bb97aec4 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -191,13 +191,13 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
self.__events_queue: multiprocessing.queues.Queue = multiprocessing.Queue()
- self.__state_notifier = aiomulti.AioProcessNotifier()
+ self.__notifier = aiomulti.AioProcessNotifier()
self.__state_flags = aiomulti.AioSharedFlags({
"online": True,
"caps": False,
"scroll": False,
"num": False,
- }, self.__state_notifier)
+ }, self.__notifier)
self.__stop_event = multiprocessing.Event()
@@ -243,7 +243,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
if state != prev_state:
yield state
prev_state = state
- await self.__state_notifier.wait()
+ await self.__notifier.wait()
@aiotools.atomic
async def reset(self) -> None: