Skip to content

Commit

Permalink
fix:DruidDatasource无法关闭closed (#637) (#638)
Browse files Browse the repository at this point in the history
* fix:DruidDatasource无法关闭closed (#637)

* fix:DruidDatasource无法关闭closed (#637)

---------

Co-authored-by: shencj10 <MX123567@>
  • Loading branch information
shen3 authored May 15, 2024
1 parent f97f8ba commit f018082
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ private void closeDataSource(String ds, DataSource dataSource, boolean graceDest
}
}
}

if (null == realDataSource) {
realDataSource = dataSource;
}
if (null != realDataSource) {
DataSourceDestroyer destroyer = new DefaultDataSourceDestroyer();
if (graceDestroy) {
Expand Down

0 comments on commit f018082

Please sign in to comment.