~emersion/soju-dev

Explicitly close connection to SQLite on failed upgrade v1 APPLIED

Hubert Hirtz: 1
 Explicitly close connection to SQLite on failed upgrade

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/25146/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Explicitly close connection to SQLite on failed upgrade Export this patch

---
 db_sqlite.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/db_sqlite.go b/db_sqlite.go
index 58ea072..6413acc 100644
--- a/db_sqlite.go
+++ b/db_sqlite.go
@@ -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
	}

-- 
2.33.0
Pushed, thanks!