From ea206d403674a553c158c0e6839f0fdf59f1ae6a Mon Sep 17 00:00:00 2001 From: Dmitri Babaev Date: Thu, 2 Jun 2011 14:25:16 +0400 Subject: [PATCH] comments for JschSshClinet bug fix --- .../jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java b/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java index 9e0d01244e..266567dbbe 100644 --- a/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java +++ b/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java @@ -282,6 +282,7 @@ public class JschSshClient implements SshClient { try { executor.connect(); } catch (JSchException e) { + // performing a retry if connect has thrown an exception executor.disconnect(); backoffForAttempt(++j, String.format("%s@%s:%d: Failed to connect ChannelExec", username, host, port)); }