Skip to content

Commit

Permalink
fix event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Aug 6, 2024
1 parent 55cae89 commit 36a675b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions universql/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,10 @@ def harakiri(sig, frame):
# last_intent_to_kill = time.time()

@app.on_event("shutdown")
async def startup_event():
async def shutdown_event():
kill_event.set()
for token, session in sessions.items():
session.close()
thread.join()


@app.on_event("startup")
Expand Down

0 comments on commit 36a675b

Please sign in to comment.