修改连接释放
This commit is contained in:
parent
81a1170905
commit
640f3d2e41
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user