mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 20:46:36 +00:00
some more cleanup
This commit is contained in:
parent
d5e80089ff
commit
facce2c0df
3 changed files with 22 additions and 31 deletions
|
|
@ -333,13 +333,11 @@ def errorUse(expression, expected=None, dump=False):
|
|||
threadData = getCurrentThreadData()
|
||||
|
||||
while kb.threadContinue:
|
||||
kb.locks.limits.acquire()
|
||||
try:
|
||||
num = threadData.shared.limits.next()
|
||||
except StopIteration:
|
||||
break
|
||||
finally:
|
||||
kb.locks.limits.release()
|
||||
with kb.locks.limits:
|
||||
try:
|
||||
num = threadData.shared.limits.next()
|
||||
except StopIteration:
|
||||
break
|
||||
|
||||
output = __errorFields(expression, expressionFields, expressionFieldsList, expected, num)
|
||||
|
||||
|
|
@ -349,9 +347,8 @@ def errorUse(expression, expected=None, dump=False):
|
|||
if output and isinstance(output, list) and len(output) == 1:
|
||||
output = output[0]
|
||||
|
||||
kb.locks.outputs.acquire()
|
||||
threadData.shared.outputs.append(output)
|
||||
kb.locks.outputs.release()
|
||||
with kb.locks.outputs:
|
||||
threadData.shared.outputs.append(output)
|
||||
|
||||
runThreads(numThreads, errorThread)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue