From 6acbca30b0de51462b1a486c83d936c0c4f5d94e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 20 Nov 2014 02:32:36 +0100 Subject: Import threading instead thread + thread cleanup --- pyload/plugins/hook/CaptchaBrotherhood.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pyload/plugins/hook/CaptchaBrotherhood.py') 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")) -- cgit v1.2.3