fix chunk polling

This commit is contained in:
Jesse Boyd 2019-11-01 22:59:10 +01:00
parent 0c1fdcc498
commit 6de30f8ed4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -289,7 +289,7 @@ public class SingleThreadQueueExtent extends BatchProcessorHolder implements IQu
for (int i = 0; i < overflow; i++) {
Future first = submissions.poll();
try {
while ((first = (Future) first.get()) != null);
while (first != null) first = (Future) first.get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
}