try not to close sqlitedict more than once
This commit is contained in:
parent
a30c66c1a7
commit
f68f5f5669
3 changed files with 3 additions and 2 deletions
|
@ -59,7 +59,7 @@ class Downloads(Thread):
|
|||
|
||||
def join(self):
|
||||
self.transfers.commit()
|
||||
self.transfers.close()
|
||||
self.transfers.close(do_log=False)
|
||||
return Thread.join(self)
|
||||
|
||||
def wait_online(self):
|
||||
|
|
|
@ -174,7 +174,7 @@ class Peer(object):
|
|||
def join(self):
|
||||
#self.library.join()
|
||||
self.library.commit()
|
||||
self.library.close()
|
||||
self.library.close(do_log=False)
|
||||
self.sync_info()
|
||||
|
||||
def remove(self):
|
||||
|
|
|
@ -555,4 +555,5 @@ def migrate_11():
|
|||
state.db.session.add(t)
|
||||
state.db.session.commit()
|
||||
state.downloads.transfers.commit()
|
||||
state.downloads = None
|
||||
return 11
|
||||
|
|
Loading…
Reference in a new issue