diff options
author | Maxim Devaev <[email protected]> | 2021-07-23 04:33:13 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-23 04:33:13 +0300 |
commit | bc73e74161f61f3d56f7395fec161febe65e93e6 (patch) | |
tree | 93e32d010b8870e6522a7ce6e7c703b01d8953e8 /kvmd/plugins/ugpio | |
parent | 1ded926b02c03867aa6ae8bd5b71414ce42cc233 (diff) |
fixed process waiting
Diffstat (limited to 'kvmd/plugins/ugpio')
-rw-r--r-- | kvmd/plugins/ugpio/ezcoo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/ugpio/ezcoo.py b/kvmd/plugins/ugpio/ezcoo.py index b1f33258..6a19445c 100644 --- a/kvmd/plugins/ugpio/ezcoo.py +++ b/kvmd/plugins/ugpio/ezcoo.py @@ -110,7 +110,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute if self.__proc.is_alive(): get_logger(0).info("Stopping %s daemon ...", self) self.__stop_event.set() - if self.__proc.exitcode is not None: + if self.__proc.is_alive() or self.__proc.exitcode is not None: self.__proc.join() async def read(self, pin: int) -> bool: |