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):