Skip to content

Commit 1f04b0a

Browse files
committed
let it be null, no waiting
1 parent d87c696 commit 1f04b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reconstruction/ai/src/main/java/org/jlab/service/ai/DCDenoiseEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public PredictorPool(int size, ZooModel model) {
4444
for (int i=0; i<size; i++) pool.add(model.newPredictor());
4545
}
4646
public Predictor get() throws InterruptedException {
47-
return pool.take();
47+
return pool.poll();
4848
}
4949
public void put(Predictor p) {
5050
if (p != null) pool.offer(p);

0 commit comments

Comments
 (0)