update README.md

This commit is contained in:
jipengfei-jpf
2023-07-02 21:24:34 +08:00
parent b6fb587086
commit 3ca9b55b8c

View File

@ -180,15 +180,15 @@ public class Chat2DBContext {
} catch (SQLException e) {
log.error("close connection error", e);
}
Session session = connectInfo.getSession();
if (session != null) {
try {
session.delPortForwardingL(Integer.parseInt(connectInfo.getSsh().getLocalPort()));
session.disconnect();
} catch (JSchException e) {
log.error("close session error", e);
}
}
//Session session = connectInfo.getSession();
//if (session != null) {
// try {
// session.delPortForwardingL(Integer.parseInt(connectInfo.getSsh().getLocalPort()));
// session.disconnect();
// } catch (JSchException e) {
// log.error("close session error", e);
// }
//}
CONNECT_INFO_THREAD_LOCAL.remove();
}
}