mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-19 21:10:36 +03:00
minor update
This commit is contained in:
parent
b117c40aa5
commit
267d67b024
|
@ -14,6 +14,7 @@ import traceback
|
||||||
|
|
||||||
from thread import error as threadError
|
from thread import error as threadError
|
||||||
|
|
||||||
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
from lib.core.datatype import AttribDict
|
from lib.core.datatype import AttribDict
|
||||||
|
@ -180,5 +181,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
|
||||||
kb.threadContinue = True
|
kb.threadContinue = True
|
||||||
kb.threadException = False
|
kb.threadException = False
|
||||||
|
|
||||||
|
conf.hashDB.flush()
|
||||||
|
|
||||||
if cleanupFunction:
|
if cleanupFunction:
|
||||||
cleanupFunction()
|
cleanupFunction()
|
||||||
|
|
|
@ -76,6 +76,9 @@ class HashDB(object):
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
|
if not self._write_cache:
|
||||||
|
return
|
||||||
|
|
||||||
self._cache_lock.acquire()
|
self._cache_lock.acquire()
|
||||||
items = self._write_cache.items()
|
items = self._write_cache.items()
|
||||||
self._write_cache.clear()
|
self._write_cache.clear()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user