Skip to content

Commit

Permalink
always close db connection on error in Open
Browse files Browse the repository at this point in the history
This commit fixes a bug where the db connection would not always be
closed when an error occurred in Open. Additionally, it makes sure that
we always unregister any callbacks associated with the connection, which
previously did not always happen. This change consolidates the error
handling logic (previously, it had to be done for each return statement)
which should make it more difficult to introduce this type of bug in the
future.
  • Loading branch information
charlievieth committed Dec 13, 2024
1 parent 7658c06 commit 04d7782
Show file tree
Hide file tree
Showing 2 changed files with 269 additions and 247 deletions.
Loading

0 comments on commit 04d7782

Please sign in to comment.