changeset 325:fe127b3c4b88 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 09:34:31 -0700
parents a1a2e33b3565
children 97da8c5fb40a
files src/ch/ethz/ssh2/transport/TransportManager.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 09:31:42 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 09:34:31 2014 -0700
@@ -313,8 +313,7 @@
     throws IOException {
         synchronized (connectionSemaphore) {
             if (connectionClosed) {
-                // Inform the caller that there is no point in triggering a new kex
-                throw reasonClosedCause;
+                throw(IOException) new IOException("Sorry, this connection is closed.").initCause(reasonClosedCause);
             }
         }