Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 887109a commit 2bfdac5Copy full SHA for 2bfdac5
1 file changed
lib/utils/crawler.py
@@ -27,6 +27,7 @@
27
28
def crawl(target):
29
try:
30
+ visited = set()
31
threadData = getCurrentThreadData()
32
threadData.shared.value = oset()
33
@@ -37,6 +38,10 @@ def crawlThread():
37
38
with kb.locks.limit:
39
if threadData.shared.unprocessed:
40
current = threadData.shared.unprocessed.pop()
41
+ if current in visited:
42
+ continue
43
+ else:
44
+ visited.add(current)
45
else:
46
break
47
0 commit comments