mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
db locking issues fix #2
This commit is contained in:
parent
26f30cacf5
commit
385bf3987e
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ class DBConnection:
|
|||
attempt = 0
|
||||
|
||||
# Transaction
|
||||
self.connection.isolation_level = 'EXCLUSIVE'
|
||||
self.connection.execute('BEGIN EXCLUSIVE')
|
||||
self.connection.isolation_level = None
|
||||
self.connection.execute('BEGIN')
|
||||
|
||||
while attempt < 5:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue