comments for JschSshClinet bug fix

This commit is contained in:
Dmitri Babaev 2011-06-02 14:25:16 +04:00
parent 6dc6d3581f
commit ea206d4036
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ public class JschSshClient implements SshClient {
try { try {
executor.connect(); executor.connect();
} catch (JSchException e) { } catch (JSchException e) {
// performing a retry if connect has thrown an exception
executor.disconnect(); executor.disconnect();
backoffForAttempt(++j, String.format("%s@%s:%d: Failed to connect ChannelExec", username, host, port)); backoffForAttempt(++j, String.format("%s@%s:%d: Failed to connect ChannelExec", username, host, port));
} }