mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-28 01:24:44 +08:00
update README.md
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user