We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdbdc3e commit 225005dCopy full SHA for 225005d
1 file changed
src/main/java/edu/uci/ics/crawler4j/frontier/Frontier.java
@@ -120,6 +120,11 @@ public void schedule(WebURL url) {
120
logger.error("Error while putting the url in the work queue", e);
121
}
122
123
+
124
+ // Wake up threads
125
+ synchronized (waitingList) {
126
+ waitingList.notifyAll();
127
+ }
128
129
130
public void getNextURLs(int max, List<WebURL> result) {
@@ -198,4 +203,4 @@ public void finish() {
198
203
waitingList.notifyAll();
199
204
200
205
201
-}
206
+}
0 commit comments