Skip to content

Commit

Permalink
Adding protection against infinite loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Allen committed Sep 1, 2020
1 parent d2e7d04 commit b5a8647
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void startCrawling() {
String responseBody = drupalHttpClient.getContent(url);
if (responseBody != null) {
currentStepContent.put(url, responseBody);
urlsVisitedInCurrentStep.add(url);
}
urlsVisitedInCurrentStep.add(url);
});

drupalUrls.removeAll(urlsVisitedInCurrentStep);
Expand Down

0 comments on commit b5a8647

Please sign in to comment.