Skip to content

Commit 95cc141

Browse files
committed
set interrupt flag
1 parent 3b846f8 commit 95cc141

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/apache/ibatis/datasource/pooled/PooledDataSource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ private PooledConnection popConnection(String username, String password) throws
479479
state.wait(poolTimeToWait);
480480
state.accumulatedWaitTime += System.currentTimeMillis() - wt;
481481
} catch (InterruptedException e) {
482+
// set interrupt flag
483+
Thread.currentThread().interrupt();
482484
break;
483485
}
484486
}

0 commit comments

Comments
 (0)