mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	minor update
This commit is contained in:
		
							parent
							
								
									6fd8602f01
								
							
						
					
					
						commit
						23d7820de7
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user