From ae0a6546752e95735cb8d4086127540619f44419 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 2 Aug 2010 12:26:11 +0200 Subject: reconnect fix --- pyLoadCore.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index c3ef6a7ea..ab69e3d9f 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -356,15 +356,19 @@ class Core(object): #self.webserver.join() for thread in self.threadManager.threads: thread.put("quit") - for pyfile in self.files.cache.itervalues(): + pyfiles = self.files.cache.values() + + for pyfile in pyfiles: pyfile.abortDownload() - self.files.syncSave() + # self.requestFactory.clean() except: if self.debug: print_exc() self.log.info(_("error while shutting down")) + finally: + self.files.syncSave() def path(self, *args): return join(pypath, *args) -- cgit v1.2.3