Skip to content

Commit

Permalink
Fix for issue hierynomus#910: Bad packet received by server when hear…
Browse files Browse the repository at this point in the history
…beat is enabled
  • Loading branch information
rasantel committed Nov 9, 2023
1 parent b7dc869 commit 8c2c04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/sshj/SSHClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -804,12 +804,12 @@ protected void onConnect()
throws IOException {
super.onConnect();
trans.init(getRemoteHostname(), getRemotePort(), getInputStream(), getOutputStream());
doKex();
final KeepAlive keepAliveThread = conn.getKeepAlive();
if (keepAliveThread.isEnabled()) {
ThreadNameProvider.setThreadName(conn.getKeepAlive(), trans);
keepAliveThread.start();
}
doKex();
}

/**
Expand Down

0 comments on commit 8c2c04e

Please sign in to comment.