mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 00:00:54 +03:00
Don't do the caller's job
This commit is contained in:
@@ -657,14 +657,7 @@ public class SSHClient
|
||||
assert trans.isRunning();
|
||||
|
||||
final long start = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
trans.doKex();
|
||||
} catch (TransportException te) {
|
||||
trans.disconnect(DisconnectReason.KEY_EXCHANGE_FAILED);
|
||||
throw te;
|
||||
}
|
||||
|
||||
trans.doKex();
|
||||
log.info("Key exchange took {} seconds", (System.currentTimeMillis() - start) / 1000.0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user