From: David ‘Bombe’ Roden Date: Wed, 14 May 2008 16:13:42 +0000 (+0000) Subject: skip known identifiers in initial request list X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=818fddc5687bcb1dccada1814ea9a39112d8fcb4;p=jSite2.git skip known identifiers in initial request list git-svn-id: http://trooper/svn/projects/jSite/trunk@881 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/core/RequestManager.java b/src/net/pterodactylus/jsite/core/RequestManager.java index 4efd9d9..a90207b 100644 --- a/src/net/pterodactylus/jsite/core/RequestManager.java +++ b/src/net/pterodactylus/jsite/core/RequestManager.java @@ -173,7 +173,11 @@ public class RequestManager implements NodeListener, HighLevelProgressListener { return; } for (RequestResult requestResult: requestListResult) { - Request request = new Request(node, requestResult.getIdentifier()); + String identifier = requestResult.getIdentifier(); + if (identifierRequests.containsKey(identifier)) { + continue; + } + Request request = new Request(node, identifier); identifierRequests.put(requestResult.getIdentifier(), request); /* TODO - fill request */ fireRequestAdded(request);