From c9b7d98df8823e4781955ab7aaeb140b1080e280 Mon Sep 17 00:00:00 2001 From: "abel.chen" Date: Sun, 8 Jul 2018 14:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=AD=E5=BA=9F=E5=BC=83=E7=9A=84?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/third/alibaba/druid/pool/DruidDataSource.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java b/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java index 54c352f5f..edae35120 100644 --- a/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java +++ b/fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java @@ -609,7 +609,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat createConnectionThread.setStarted(false); String destroyName = "Druid-ConnectionPool-Destroy-" + System.identityHashCode(this) + this.getUrl(); if (destroyConnectionThread != null) { - destroyConnectionThread.interrupt(); + if (!destroyConnectionThread.isInterrupted()) { + destroyConnectionThread.interrupt(); + } } destroyConnectionThread = new DestroyConnectionThread(destroyName); destroyConnectionThread.setStarted(false);