changeset 335:e25e377d29d3 ganymed

still hangs during connection
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 14:35:37 -0700
parents 097cfe8770dd
children 63b23b7c840d
files src/ch/ethz/ssh2/transport/ClientServerHello.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ClientServerHello.java	Thu Jul 31 14:33:20 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/ClientServerHello.java	Thu Jul 31 14:35:37 2014 -0700
@@ -45,7 +45,7 @@
         InputStreamReader isr = new InputStreamReader(bi);
         LineNumberReader  lnr = new LineNumberReader(isr);
         String remoteIdentifier = lnr.readLine();
-        if (!bi.ready() && lnr.ready()) {
+        if ((bi.available()==0) && lnr.ready()) {
             int  a= 1;  // break
         }