summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Captcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/Captcha.py')
-rw-r--r--module/plugins/internal/Captcha.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/internal/Captcha.py b/module/plugins/internal/Captcha.py
index 7e851ed5d..b83596771 100644
--- a/module/plugins/internal/Captcha.py
+++ b/module/plugins/internal/Captcha.py
@@ -12,7 +12,7 @@ from module.plugins.internal.misc import encode
class Captcha(Plugin):
__name__ = "Captcha"
__type__ = "captcha"
- __version__ = "0.53"
+ __version__ = "0.54"
__status__ = "stable"
__description__ = """Base anti-captcha plugin"""
@@ -100,7 +100,11 @@ class Captcha(Plugin):
result = self.task.result
if self.task.error:
- self.pyfile.plugin.retry_captcha(msg=self.task.error)
+ if not self.task.handler and not self.pyload.isClientConnected():
+ self.log_warning(_("No Client connected for captcha decrypting"))
+ self.fail(_("No Client connected for captcha decrypting"))
+ else:
+ self.pyfile.plugin.retry_captcha(msg=self.task.error)
elif self.task.result:
self.log_info(_("Captcha result: `%s`") % (result,))