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/ExpertDecoders.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/ExpertDecoders.py')
-rw-r--r-- | pyload/plugins/hook/ExpertDecoders.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyload/plugins/hook/ExpertDecoders.py b/pyload/plugins/hook/ExpertDecoders.py index f57ef55bb..658a55288 100644 --- a/pyload/plugins/hook/ExpertDecoders.py +++ b/pyload/plugins/hook/ExpertDecoders.py @@ -4,7 +4,6 @@ from __future__ import with_statement from base64 import b64encode from pycurl import LOW_SPEED_TIME -from thread import start_new_thread from uuid import uuid4 from pyload.network.HTTPRequest import BadHeader @@ -76,8 +75,7 @@ class ExpertDecoders(Hook): if self.getCredits() > 0: task.handler.append(self) task.setWaiting(100) - start_new_thread(self.processCaptcha, (task,)) - + self.processCaptcha(task) else: self.logInfo(_("Your ExpertDecoders Account has not enough credits")) |