Skip to content

Commit 7fbde5e

Browse files
committed
always close db connection on error in Open
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.
1 parent 7658c06 commit 7fbde5e

File tree

2 files changed

+269
-247
lines changed

2 files changed

+269
-247
lines changed

0 commit comments

Comments
 (0)