try not to close sqlitedict more than once

This commit is contained in:
j 2016-02-12 19:04:13 +05:30
parent a30c66c1a7
commit f68f5f5669
3 changed files with 3 additions and 2 deletions

View file

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

View file

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

View file

@ -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