diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
commit | a33d8062833d1bfec4777145cc484c1d6b9e141f (patch) | |
tree | 7d815f80cdcced2d36144b9b71760278d29ed007 /pyLoadCore.py | |
parent | locale fixes (diff) | |
download | pyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz |
some automatic fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 7e0df878c..ad4b0cc90 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -51,7 +51,6 @@ from traceback import print_exc from xmlrpclib import Binary - from module import InitHomeDir from module.AccountManager import AccountManager from module.CaptchaManager import CaptchaManager @@ -138,11 +137,11 @@ class Core(object): print "" def toggle_pause(self): - if self.thread_list.pause: - self.thread_list.pause = False + if self.threadManager.pause: + self.threadManager.pause = False return False - elif not self.thread_list.pause: - self.thread_list.pause = True + elif not self.threadManager.pause: + self.threadManager.pause = True return True def quit(self, a, b): @@ -613,7 +612,7 @@ class ServerMethods(): def is_captcha_waiting(self): self.core.lastClientConnected = time.time() task = self.core.captchaManager.getTask() - return not task == None + return not task is None def get_captcha_task(self, exclusive=False): self.core.lastClientConnected = time.time() |