SftpreconnectIfTimeout方法改为捕获所有异常(issue#3989@Github)

This commit is contained in:
Looly
2025-07-08 15:57:19 +08:00
parent da7d6b9d81
commit b43899c6fb
2 changed files with 5 additions and 3 deletions

View File

@@ -226,7 +226,7 @@ public class Sftp extends AbstractFtp {
}
try {
this.cd(StrUtil.SLASH);
} catch (FtpException e) {
} catch (Exception e) {
close();
init();
}