Re-use session. fix #252

This commit is contained in:
Ruud committed 2012-05-11 23:17:50 +02:00
1 parent 4bdd23e36a
commit 921a851b7e
17 files changed
+48 -48

No files matched your search

+3 -3
View File
@@ -61,7 +61,7 @@ class Searcher(Plugin):
if self.shuttingDown():
break
db.close()
#db.close()
self.in_progress = False
def single(self, movie):
@@ -155,7 +155,7 @@ class Searcher(Plugin):
if self.shuttingDown():
break
db.close()
#db.close()
return False
def download(self, data, movie, manual = False):
@@ -198,7 +198,7 @@ class Searcher(Plugin):
except Exception, e:
log.error('Failed marking movie finished: %s %s' % (e, traceback.format_exc()))
db.close()
#db.close()
return True
log.info('Tried to download, but none of the downloaders are enabled')