From be58188f520ecff054bb09c3e196bee34fae09b1 Mon Sep 17 00:00:00 2001 From: deurstann <tristan.derouet@gmail.com> Date: Wed, 15 Sep 2021 12:26:13 +0200 Subject: [PATCH] Added Timeout to wait when db is lock --- common/db.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/db.js b/common/db.js index 0f608fb..07f555d 100644 --- a/common/db.js +++ b/common/db.js @@ -47,6 +47,7 @@ class KaraDatabase { constructor() { this.m_karaPath = config.content.database.path; this.m_db = new sqlite3.Database(this.m_karaPath); + this.m_db.configure("busyTimeout", 50000) logger.info('db', 'Create database from file ' + config.content.database.path); } -- GitLab