From 0e7c8b5959ab78cde63c59894ff078f45dbff010 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 23 Jun 2015 19:43:51 -0500 Subject: [PATCH] Attempt at fixing database locked Hopefully, the close before cachetexture will fix the issue. --- resources/lib/TextureCache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/TextureCache.py b/resources/lib/TextureCache.py index df731dc5..9fa3868d 100644 --- a/resources/lib/TextureCache.py +++ b/resources/lib/TextureCache.py @@ -82,9 +82,10 @@ class TextureCache(): if result: cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) connection.commit() + cursor.close() else: + cursor.close() self.CacheTexture(url) - cursor.close() def setKodiWebServerDetails(self):