summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/device.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/otg/device.py
parent1ded926b02c03867aa6ae8bd5b71414ce42cc233 (diff)
fixed process waiting
Diffstat (limited to 'kvmd/plugins/hid/otg/device.py')
-rw-r--r--kvmd/plugins/hid/otg/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py
index 958f0d4d..28feece8 100644
--- a/kvmd/plugins/hid/otg/device.py
+++ b/kvmd/plugins/hid/otg/device.py
@@ -122,7 +122,7 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
if self.is_alive():
get_logger().info("Stopping HID-%s daemon ...", self.__name)
self.__stop_event.set()
- if self.exitcode is not None:
+ if self.is_alive() or self.exitcode is not None:
self.join()
def _queue_event(self, event: BaseEvent) -> None: