Skip to content

Commit

Permalink
fix(release-hold): set on_hold to false after while loop
Browse files Browse the repository at this point in the history
fixes #100
  • Loading branch information
xaviml committed Aug 2, 2020
1 parent 3543b72 commit 993d69a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/controllerx/cx_core/controller.py
Expand Up @@ -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)
Expand Down

0 comments on commit 993d69a

Please sign in to comment.