[Bugfix]loop error when add TargetRequest #99
parent
3a79b1b64a
commit
b249e49748
|
@ -127,7 +127,7 @@ public class Page {
|
||||||
synchronized (targetRequests) {
|
synchronized (targetRequests) {
|
||||||
for (String s : requests) {
|
for (String s : requests) {
|
||||||
if (StringUtils.isBlank(s) || s.equals("#") || s.startsWith("javascript:")) {
|
if (StringUtils.isBlank(s) || s.equals("#") || s.startsWith("javascript:")) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
s = UrlUtils.canonicalizeUrl(s, url.toString());
|
s = UrlUtils.canonicalizeUrl(s, url.toString());
|
||||||
targetRequests.add(new Request(s).setPriority(priority));
|
targetRequests.add(new Request(s).setPriority(priority));
|
||||||
|
|
Loading…
Reference in New Issue