Skip to content

Commit

Permalink
Fix process restart after error exit (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason authored Mar 5, 2024
1 parent 6bffacb commit 84c80de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drekar_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ async def run(self):
if not s.restart:
break
if self._keep_going:
await self.exit_event.wait(s.restart_backoff)
with suppress(asyncio.TimeoutError):
await asyncio.wait_for(self.parent.exit_event.wait(), timeout=s.restart_backoff)

@property
def process_state(self):
Expand Down

0 comments on commit 84c80de

Please sign in to comment.