提交 18e893d1 编写于 作者: S Serge Rider

Connection error handler fix (shutdown failed connection)

上级 2f4066cd
......@@ -951,6 +951,15 @@ public class DataSourceDescriptor
return true;
} catch (Exception e) {
log.debug("Connection failed (" + getId() + ")", e);
if (dataSource != null) {
try {
dataSource.shutdown(monitor);
} catch (Exception e2) {
log.debug("Error during closing failed connection", e2);
}
dataSource = null;
}
if (tunnelHandler != null) {
try {
tunnelHandler.closeTunnel(monitor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册