From 993d69aa37c8ffdfabd5de6325f4b99387d6c4f7 Mon Sep 17 00:00:00 2001 From: Xavi Date: Sun, 2 Aug 2020 09:17:20 +0200 Subject: [PATCH] fix(release-hold): set on_hold to false after while loop fixes #100 --- apps/controllerx/cx_core/controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/controllerx/cx_core/controller.py b/apps/controllerx/cx_core/controller.py index 40de41f0..64bab4ca 100644 --- a/apps/controllerx/cx_core/controller.py +++ b/apps/controllerx/cx_core/controller.py @@ -339,6 +339,7 @@ async def hold(self, *args) -> None: stop = stop or loops >= self.max_loops await self.sleep(self.delay / 1000) loops += 1 + self.on_hold = False async def before_action(self, action: str, *args, **kwargs) -> bool: to_return = not (action == "hold" and self.on_hold)