mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Sftp
reconnectIfTimeout
方法改为捕获所有异常(issue#3989@Github)
This commit is contained in:
@@ -187,7 +187,7 @@ public class JschSftp extends AbstractFtp {
|
||||
public JschSftp reconnectIfTimeout() {
|
||||
try {
|
||||
this.cd(StrUtil.SLASH);
|
||||
} catch (final FtpException e) {
|
||||
} catch (final Exception e) {
|
||||
close();
|
||||
init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user