mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-24 23:29:05 +00:00
Minor refactoring
This commit is contained in:
@@ -195,7 +195,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
|
||||
if lock.locked_lock():
|
||||
lock.release()
|
||||
|
||||
if conf.get("hashDB", None):
|
||||
if conf.get("hashDB"):
|
||||
conf.hashDB.flush(True)
|
||||
|
||||
if cleanupFunction:
|
||||
|
||||
@@ -57,7 +57,7 @@ class HashDB(object):
|
||||
retVal = None
|
||||
if key and (self._write_cache or os.path.isfile(self.filepath)):
|
||||
hash_ = HashDB.hashKey(key)
|
||||
retVal = self._write_cache.get(hash_, None)
|
||||
retVal = self._write_cache.get(hash_)
|
||||
if not retVal:
|
||||
while True:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user