update README.md

This commit is contained in:
jipengfei-jpf
2023-07-02 21:15:41 +08:00
parent 2ed9c2f694
commit b6fb587086

View File

@ -126,9 +126,13 @@ public class Chat2DBContext {
if (session != null) { if (session != null) {
try { try {
session.delPortForwardingL(Integer.parseInt(ssh.getLocalPort())); session.delPortForwardingL(Integer.parseInt(ssh.getLocalPort()));
session.disconnect();
} catch (JSchException e) { } catch (JSchException e) {
log.error("session close error", e); log.error("session delPortForwardingL error", e);
}
try {
session.disconnect();
} catch (Exception e) {
log.error("session disconnect error", e);
} }
} }
throw new RuntimeException("getConnect error", e1); throw new RuntimeException("getConnect error", e1);