fixed process waiting

This commit is contained in:
Maxim Devaev
2021-07-23 04:33:13 +03:00
parent 1ded926b02
commit bc73e74161
4 changed files with 4 additions and 4 deletions

View File

@@ -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: