mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
minor update
This commit is contained in:
parent
6fd8602f01
commit
23d7820de7
|
@ -49,7 +49,7 @@ def getCurrentThreadData():
|
||||||
kb.threadData[threadUID] = ThreadData()
|
kb.threadData[threadUID] = ThreadData()
|
||||||
return kb.threadData[threadUID]
|
return kb.threadData[threadUID]
|
||||||
|
|
||||||
def runThreads(numThreads, threadFunction, cleanupFunction=None):
|
def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardException=True):
|
||||||
threads = []
|
threads = []
|
||||||
|
|
||||||
kb.threadContinue = True
|
kb.threadContinue = True
|
||||||
|
@ -94,6 +94,9 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None):
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
|
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
|
||||||
|
|
||||||
|
if forwardException:
|
||||||
|
raise
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
kb.threadContinue = True
|
kb.threadContinue = True
|
||||||
kb.threadException = False
|
kb.threadException = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user