summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/serial.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-14 17:02:19 +0300
committerDevaev Maxim <[email protected]>2020-10-14 17:02:19 +0300
commit55968f932866c4e097a32e2d9f6d7764fce1fbee (patch)
treeb9dbc6e1cb2de1365baea54f658700b0b123ebe6 /kvmd/plugins/hid/serial.py
parentd769742768d891a2ef868925ca35ae5e6b4e23f3 (diff)
serial hid: don't sleep on exit
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r--kvmd/plugins/hid/serial.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index 17378e6a..abb2e87f 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -353,12 +353,11 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
logger.error("Missing HID serial device: %s", self.__device_path)
else:
logger.exception("Unexpected HID error")
+ time.sleep(1)
except Exception:
self.clear_events()
logger.exception("Unexpected HID error")
-
- finally:
time.sleep(1)
def __get_serial(self) -> serial.Serial: