mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
serial hid: don't sleep on exit
This commit is contained in:
parent
d769742768
commit
55968f9328
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user