Skip to content

Commit

Permalink
Merge pull request #2503 from Oliverwqcwrw/master-deal-interrupted-st…
Browse files Browse the repository at this point in the history
…atus-2

set interrupt flag
  • Loading branch information
hazendaz authored Apr 1, 2022
2 parents 3b846f8 + 95cc141 commit 0f6010c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ private PooledConnection popConnection(String username, String password) throws
state.wait(poolTimeToWait);
state.accumulatedWaitTime += System.currentTimeMillis() - wt;
} catch (InterruptedException e) {
// set interrupt flag
Thread.currentThread().interrupt();
break;
}
}
Expand Down

0 comments on commit 0f6010c

Please sign in to comment.