Skip to content

Commit

Permalink
exit on service stop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 3, 2024
1 parent de2ec65 commit 389dd2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/pixljs_alert/zero_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ async def main(config):
await asyncio.sleep(0.05)
while time.time() - scan_result.received_data_time < 0.1:
await asyncio.sleep(0.05)
if t.is_set():
break
c = ""
try:
output = scan_result.received_data.getvalue().decode("iso-8859-1")
Expand Down

0 comments on commit 389dd2c

Please sign in to comment.