minor update

This commit is contained in:
Miroslav Stampar 2011-05-29 23:56:41 +00:00
parent 6fd8602f01
commit 23d7820de7

View File

@ -49,7 +49,7 @@ def getCurrentThreadData():
kb.threadData[threadUID] = ThreadData()
return kb.threadData[threadUID]
def runThreads(numThreads, threadFunction, cleanupFunction=None):
def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardException=True):
threads = []
kb.threadContinue = True
@ -94,6 +94,9 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None):
except KeyboardInterrupt:
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
if forwardException:
raise
finally:
kb.threadContinue = True
kb.threadException = False