summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hook/CaptchaBrotherhood.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 02:32:36 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 02:32:36 +0100
commit6acbca30b0de51462b1a486c83d936c0c4f5d94e (patch)
treebb6aae47aca0294302b33be816bef3e30d397add /pyload/plugins/hook/CaptchaBrotherhood.py
parent[Addon] Periodical default to off (diff)
downloadpyload-6acbca30b0de51462b1a486c83d936c0c4f5d94e.tar.xz
Import threading instead thread + thread cleanup
Diffstat (limited to 'pyload/plugins/hook/CaptchaBrotherhood.py')
-rw-r--r--pyload/plugins/hook/CaptchaBrotherhood.py3
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"))