summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-30 01:02:00 +0300
committerDevaev Maxim <[email protected]>2019-09-30 01:02:00 +0300
commite1b7e4fbcd1f34878162bc8bbeb92b7f47f058cc (patch)
tree959f01f467a1f1cc75376a916d0723f8553b0456 /kvmd/plugins
parent7d6d6fa6f9a69ba01bef8635d21ec4cd7a438085 (diff)
minor otg hid fixes
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/otg/hid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/otg/hid.py b/kvmd/plugins/hid/otg/hid.py
index a90cd094..e0cf1120 100644
--- a/kvmd/plugins/hid/otg/hid.py
+++ b/kvmd/plugins/hid/otg/hid.py
@@ -88,7 +88,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan
self._process_event(event)
passed = 0
except Exception:
- logger.error("Unexpected HID-%s error", self.__name)
+ logger.exception("Unexpected HID-%s error", self.__name)
self._close_device()
finally:
time.sleep(1)
@@ -96,7 +96,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan
self._close_device()
def is_online(self) -> bool:
- return bool(self.__online_shared.value)
+ return bool(self.__online_shared.value and self.is_alive())
def _stop(self) -> None:
if self.is_alive():