From 16ff6a51f50313d1f32e01a08e5374f0733bc17f Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 22 Dec 2018 14:33:52 +0100 Subject: [PATCH] Increase database connection timeout when wiping --- resources/lib/kodi_db/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/kodi_db/__init__.py b/resources/lib/kodi_db/__init__.py index 2623f156..dc75e4c1 100644 --- a/resources/lib/kodi_db/__init__.py +++ b/resources/lib/kodi_db/__init__.py @@ -115,7 +115,7 @@ def wipe_dbs(music=True): if music: kinds.append(v.DB_MUSIC_PATH) for path in kinds: - conn = connect(path, timeout=5.0) + conn = connect(path, timeout=30.0) cursor = conn.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type = 'table'") tables = cursor.fetchall()