summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-02-15 11:34:37 +0300
committerDevaev Maxim <[email protected]>2020-02-15 11:34:37 +0300
commit5e9c110ef66aeb5f6634135f246171dffc1d44e3 (patch)
tree9d59a4b2a2fad47816d5ca75aff7cb16b3cfaea0 /kvmd/plugins
parent2f649029834e0fb022c687a7f71833e731fdf973 (diff)
fixed double get_state() in serial hid
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/serial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index 3f9fe23b..9927b3aa 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -200,7 +200,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
while self.is_alive():
state = self.get_state()
if state != prev_state:
- yield self.get_state()
+ yield state
prev_state = state
await asyncio.sleep(self.__state_poll)