INT-1614 added channel connect call to session connect()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user