Attempt at fixing database locked
Hopefully close before cachetexture will fix the issue.
This commit is contained in:
parent
5f356b9147
commit
b6f70fc5bf
1 changed files with 4 additions and 2 deletions
|
@ -80,11 +80,13 @@ class TextureCache():
|
||||||
cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,))
|
cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result:
|
if result:
|
||||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
result = result[0]
|
||||||
|
cursor.execute("DELETE FROM texture WHERE cachedurl = ?", (result,))
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
cursor.close()
|
||||||
else:
|
else:
|
||||||
|
cursor.close()
|
||||||
self.CacheTexture(url)
|
self.CacheTexture(url)
|
||||||
cursor.close()
|
|
||||||
|
|
||||||
|
|
||||||
def setKodiWebServerDetails(self):
|
def setKodiWebServerDetails(self):
|
||||||
|
|
Loading…
Reference in a new issue