Attempt at fixing database locked

Hopefully, the close before cachetexture will fix the issue.
This commit is contained in:
angelblue05 2015-06-23 19:43:51 -05:00
parent f946f7ba69
commit 0e7c8b5959

View file

@ -82,9 +82,10 @@ class TextureCache():
if result: if result:
cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
connection.commit() connection.commit()
cursor.close()
else: else:
cursor.close()
self.CacheTexture(url) self.CacheTexture(url)
cursor.close()
def setKodiWebServerDetails(self): def setKodiWebServerDetails(self):