From b00e6746d597fce1dc5ac93148b0c3af470989d6 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Tue, 2 Aug 2016 23:28:22 -0500 Subject: [PATCH] Potential fix for database locking issue. Fixes #331 --- models/models.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/models.go b/models/models.go index 1b403cca..007216be 100644 --- a/models/models.go +++ b/models/models.go @@ -88,6 +88,7 @@ func Setup() error { db, err = gorm.Open("sqlite3", config.Conf.DBPath) db.LogMode(false) db.SetLogger(Logger) + db.DB().SetMaxOpenConns(1) if err != nil { Logger.Println(err) return err