INT-1614 added channel connect call to session connect()

This commit is contained in:
Mark Fisher
2010-11-19 21:19:58 -05:00
parent 16bc4f635d
commit 44ca3a10c9

View File

@@ -118,6 +118,9 @@ public class SftpSession implements Session {
this.jschSession.connect();
this.channel = (ChannelSftp) this.jschSession.openChannel("sftp");
}
if (this.channel != null && !this.channel.isConnected()) {
this.channel.connect();
}
}
catch (JSchException e) {
throw new IllegalStateException("failed to connect", e);