summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-04 17:19:41 +0100
commitacd4dceb711e9148ede208bb67dc37bfaafd612b (patch)
tree8b36d3621da994285331b75061c5efefb4d60be1 /pyLoadCore.py
parentoops (diff)
downloadpyload-acd4dceb711e9148ede208bb67dc37bfaafd612b.tar.xz
improved captcha manager
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py4
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