Skip to content

Commit

Permalink
Actually allow app to quit
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Sep 9, 2023
1 parent 0e856b0 commit 6a1e757
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/BEE2.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ async def app_main(init: Callable[[], Awaitable[Any]]) -> None:
async with trio.open_nursery() as nursery:
app._APP_NURSERY = nursery
await nursery.start(display_errors)

# Run main app, then cancel this nursery to quit all other tasks.
await init()
nursery.cancel_scope.cancel()


def done_callback(result: Outcome):
Expand Down

0 comments on commit 6a1e757

Please sign in to comment.