diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index f207bf2e5..ec22a82b6 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -770,7 +770,7 @@ class ServerMethods(): if task: task.setWatingForUser(exclusive=exclusive) c = task.getCaptcha() - return str(task.getID()), Binary(c[0]), str(c[1]) + return str(task.id), Binary(c[0]), str(c[1]) else: return None, None, None @@ -785,7 +785,7 @@ class ServerMethods(): task = self.core.captchaManager.getTaskFromID(tid) if task: task.setResult(result) - task.setDone() + self.core.captchaManager.removeTask(task) return True else: return False |