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/DeathByCaptcha.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/DeathByCaptcha.py')
-rw-r--r-- | pyload/plugins/hook/DeathByCaptcha.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyload/plugins/hook/DeathByCaptcha.py b/pyload/plugins/hook/DeathByCaptcha.py index e4477565c..429258f89 100644 --- a/pyload/plugins/hook/DeathByCaptcha.py +++ b/pyload/plugins/hook/DeathByCaptcha.py @@ -6,7 +6,6 @@ import re from base64 import b64encode from pycurl import FORM_FILE, HTTPHEADER -from thread import start_new_thread from time import sleep from pyload.utils import json_loads @@ -186,7 +185,7 @@ class DeathByCaptcha(Hook): task.handler.append(self) task.data['service'] = self.__name__ task.setWaiting(180) - start_new_thread(self.processCaptcha, (task,)) + self.processCaptcha(task) def captchaInvalid(self, task): |