summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hook/BypassCaptcha.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/BypassCaptcha.py
parent[Addon] Periodical default to off (diff)
downloadpyload-6acbca30b0de51462b1a486c83d936c0c4f5d94e.tar.xz
Import threading instead thread + thread cleanup
Diffstat (limited to 'pyload/plugins/hook/BypassCaptcha.py')
-rw-r--r--pyload/plugins/hook/BypassCaptcha.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyload/plugins/hook/BypassCaptcha.py b/pyload/plugins/hook/BypassCaptcha.py
index c8842b1bf..112066353 100644
--- a/pyload/plugins/hook/BypassCaptcha.py
+++ b/pyload/plugins/hook/BypassCaptcha.py
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from pycurl import FORM_FILE, LOW_SPEED_TIME
-from thread import start_new_thread
from pyload.network.HTTPRequest import BadHeader
from pyload.network.RequestFactory import getURL, getRequest
@@ -107,8 +106,7 @@ class BypassCaptcha(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 %s account has not enough credits") % self.__name__)