Skip to content

Commit

Permalink
Merge #3585 into 1.2.2
Browse files Browse the repository at this point in the history
Signed-off-by: Violeta Georgieva <violeta.georgieva@broadcom.com>
  • Loading branch information
violetagg committed Jan 8, 2025
2 parents a8ca1a0 + 5db8f08 commit e39854d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void drainLoop() {
Slot slot = belowMinConnections ? null : findConnection(resources);
if (slot != null) {
Borrower borrower = pollPending(borrowers, true);
if (borrower == null) {
if (borrower == null || borrower.get()) {
offerSlot(resources, slot);
continue;
}
Expand Down Expand Up @@ -427,7 +427,7 @@ void drainLoop() {
poolConfig.allocationStrategy().returnPermits(permits - 1);
}
Borrower borrower = pollPending(borrowers, true);
if (borrower == null) {
if (borrower == null || borrower.get()) {
continue;
}
if (isDisposed()) {
Expand Down

0 comments on commit e39854d

Please sign in to comment.