mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 08:05:05 +00:00
HHH-14317 Avoid closing datasource in AgroalConnectionProvider if datasource is not initialized
This commit is contained in:
parent
a393cbd7f5
commit
5410e6350b
@ -139,6 +139,8 @@ public <T> T unwrap(Class<T> unwrapType) {
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
agroalDataSource.close();
|
||||
if ( agroalDataSource != null ) {
|
||||
agroalDataSource.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user