Don't do the caller's job

This commit is contained in:
Shikhar Bhushan
2011-04-29 11:28:20 +01:00
parent 85abcb7aad
commit a0109dd8fa

View File

@@ -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);
}