修改连接释放

This commit is contained in:
cheney 2022-08-16 09:47:40 +08:00
parent 81a1170905
commit 640f3d2e41
2 changed files with 5 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class SydApi4Database implements SydApi {
return this; return this;
} }
void SYD_Disconnect() { public void SYD_Disconnect() {
if (null == hsms) { if (null == hsms) {
return; return;
} }

View File

@ -94,7 +94,10 @@ public class SydApiPool extends ThreadBasedConnectPool<SydApi> {
// 释放 // 释放
protected void free(SydApi o) { protected void free(SydApi o) {
if ( null != o ) { if ( null != o ) {
o.SYD_Disconnect_Ex(); if ( o instanceof SydApi4Database ) {
((SydApi4Database)o).SYD_Disconnect();
}
} }
} }