diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:32:36 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:32:36 +0100 |
commit | 6acbca30b0de51462b1a486c83d936c0c4f5d94e (patch) | |
tree | bb6aae47aca0294302b33be816bef3e30d397add /pyload/plugins/hook/CaptchaBrotherhood.py | |
parent | [Addon] Periodical default to off (diff) | |
download | pyload-6acbca30b0de51462b1a486c83d936c0c4f5d94e.tar.xz |
Import threading instead thread + thread cleanup
Diffstat (limited to 'pyload/plugins/hook/CaptchaBrotherhood.py')
-rw-r--r-- | pyload/plugins/hook/CaptchaBrotherhood.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyload/plugins/hook/CaptchaBrotherhood.py b/pyload/plugins/hook/CaptchaBrotherhood.py index 208462c14..8c037009a 100644 --- a/pyload/plugins/hook/CaptchaBrotherhood.py +++ b/pyload/plugins/hook/CaptchaBrotherhood.py @@ -10,7 +10,6 @@ try: except ImportError: import Image -from thread import start_new_thread from time import sleep from urllib import urlencode @@ -145,7 +144,7 @@ class CaptchaBrotherhood(Hook): task.handler.append(self) task.data['service'] = self.__name__ task.setWaiting(100) - start_new_thread(self.processCaptcha, (task,)) + self.processCaptcha(task) else: self.logInfo(_("Your CaptchaBrotherhood Account has not enough credits")) |