mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
minor update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user