summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/_mcu/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-23 04:33:13 +0300
committerMaxim Devaev <[email protected]>2021-07-23 04:33:13 +0300
commitbc73e74161f61f3d56f7395fec161febe65e93e6 (patch)
tree93e32d010b8870e6522a7ce6e7c703b01d8953e8 /kvmd/plugins/hid/_mcu/__init__.py
parent1ded926b02c03867aa6ae8bd5b71414ce42cc233 (diff)
fixed process waiting
Diffstat (limited to 'kvmd/plugins/hid/_mcu/__init__.py')
-rw-r--r--kvmd/plugins/hid/_mcu/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py
index 93adc493..bcca89b9 100644
--- a/kvmd/plugins/hid/_mcu/__init__.py
+++ b/kvmd/plugins/hid/_mcu/__init__.py
@@ -230,7 +230,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
if self.is_alive():
get_logger(0).info("Stopping HID daemon ...")
self.__stop_event.set()
- if self.exitcode is not None:
+ if self.is_alive() or self.exitcode is not None:
self.join()
# =====