Skip to content

Commit

Permalink
Check blockWhenExhausted in hasBorrowWaiters
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp-John committed Nov 15, 2021
1 parent 90eab32 commit 9809f6f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1280,7 +1280,7 @@ String getStatsString() {
* {@code false}
*/
private boolean hasBorrowWaiters() {
return poolMap.values().stream().anyMatch(deque -> deque != null && deque.getIdleObjects().hasTakeWaiters());
return getBlockWhenExhausted() && poolMap.values().stream().anyMatch(deque -> deque != null && deque.getIdleObjects().hasTakeWaiters());
}

/**
Expand Down

0 comments on commit 9809f6f

Please sign in to comment.