logic bug

This commit is contained in:
cheney 2022-08-15 15:35:06 +08:00
parent b52c31efa4
commit ef32237363
2 changed files with 4 additions and 4 deletions

View File

@ -56,14 +56,14 @@ public class ThreadBasedConnectPool<T> {
continue;
}
boolean checkRet = false;
boolean checkPass = false;
try {
checkRet = check(entry.getValue().getObject());
checkPass = check(entry.getValue().getObjectForCheck());
} catch (Exception e) {
checkRet = false;
checkPass = false;
}
if (checkRet) {
if ( ! checkPass) {
log.debug("一个链接检查未通过");
// 检查未通过
it.remove();