Skip to content

Commit

Permalink
🐛 ensure ssh db connection is open :P
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Oct 18, 2023
1 parent 6713d23 commit 510715d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xthulu/ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,4 @@ async def start_server():
start()

await res.db.set_bind(get_config("db.bind"))

try:
await listen(**kwargs)
finally:
await res.db.pop_bind().close()
await listen(**kwargs)

0 comments on commit 510715d

Please sign in to comment.