From 74e8d1cc0f59ba62c8ab39c334dd5e8812229de0 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 30 Dec 2018 22:10:36 +0100 Subject: [PATCH] Increase database timeouts - Partially fixes #580 --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 762bd1eb..bce17bb6 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -402,7 +402,7 @@ def kodi_sql(media_type=None): db_path = v.DB_TEXTURE_PATH else: db_path = v.DB_VIDEO_PATH - conn = connect(db_path, timeout=30.0) + conn = connect(db_path, timeout=60.0) conn.execute('PRAGMA journal_mode=WAL;') conn.execute('PRAGMA cache_size = -8000;') conn.execute('PRAGMA synchronous=NORMAL;')