~emersion/soju

4dce5a91c9a84bd3f967f7634dc55f6aed0152d0 — Hubert Hirtz 15 days ago 8adf65a
Explicitly close connection to SQLite on failed upgrade
1 files changed, 1 insertions(+), 0 deletions(-)

M db_sqlite.go
M db_sqlite.go => db_sqlite.go +1 -0
@@ 150,6 150,7 @@ func OpenSqliteDB(driver, source string) (Database, error) {

	db := &SqliteDB{db: sqlSqliteDB}
	if err := db.upgrade(); err != nil {
		sqlSqliteDB.Close()
		return nil, err
	}