summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-02 12:26:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-02 12:26:11 +0200
commitae0a6546752e95735cb8d4086127540619f44419 (patch)
tree1cc0ada2fb6ae8a54c25d392528c809d62f04641 /pyLoadCore.py
parentRapidshare, Netload, Uploaded updated. (diff)
downloadpyload-ae0a6546752e95735cb8d4086127540619f44419.tar.xz
reconnect fix
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
1 files changed, 6 insertions, 2 deletions
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)