From 27c1654d4f5889ec9c634537e32018b4a52eed52 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 20 Jan 2014 19:32:44 +0100 Subject: fixed new waiting dl rule --- pyload/Core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyload/Core.py') diff --git a/pyload/Core.py b/pyload/Core.py index 04a77f45f..f921188c5 100644 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -36,6 +36,7 @@ from time import time, sleep from traceback import print_exc import locale + locale.locale_alias = locale.windows_locale = {} #save ~100kb ram, no known sideeffects for now import subprocess @@ -43,6 +44,7 @@ import subprocess subprocess.__doc__ = None # the module with the largest doc we are using from InitHomeDir import init_dir + init_dir() from AccountManager import AccountManager @@ -533,6 +535,7 @@ class Core(object): if os.name == "nt": try: import colorama + colorama.init() except: color = False @@ -591,8 +594,8 @@ class Core(object): pass # TODO: quit webserver? # self.webserver.quit() - self.dlm.abort() self.dlm.shutdown() + self.api.stopAllDownloads() self.addonManager.deactivateAddons() except: -- cgit v1.2.3