diff options
author | Devaev Maxim <[email protected]> | 2020-10-14 17:02:19 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-14 17:02:19 +0300 |
commit | 55968f932866c4e097a32e2d9f6d7764fce1fbee (patch) | |
tree | b9dbc6e1cb2de1365baea54f658700b0b123ebe6 /kvmd | |
parent | d769742768d891a2ef868925ca35ae5e6b4e23f3 (diff) |
serial hid: don't sleep on exit
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 3 |
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: |