Fix deadlock in DB.Close

This method was calling itself, instead of the underlying SQLite
database's Close method.
This commit is contained in:
Simon Ser 2020-07-09 11:23:51 +02:00
parent 51dc9f0bf9
commit 7ebe47ad4a
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

2
db.go
View File

@ -127,7 +127,7 @@ func OpenSQLDB(driver, source string) (*DB, error) {
func (db *DB) Close() error {
db.lock.Lock()
defer db.lock.Unlock()
return db.Close()
return db.db.Close()
}
func (db *DB) upgrade() error {