mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed
This commit is contained in:
@@ -799,7 +799,12 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
public void discardConnection(Connection realConnection) {
|
||||
JdbcUtils.close(realConnection);
|
||||
|
||||
lock.lock();
|
||||
try {
|
||||
lock.lockInterruptibly();
|
||||
} catch (InterruptedException e) {
|
||||
LOG.error("interrupt");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
activeCount--;
|
||||
discardCount++;
|
||||
|
||||
Reference in New Issue
Block a user