comparison src/ch/ethz/ssh2/Connection.java @ 371:071a1ff9b6bf

debug kex error
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 11:42:15 -0700
parents 7a5943a514d5
children 20d0a1356c43
comparison
equal deleted inserted replaced
370:f4d595402a2f 371:071a1ff9b6bf
677 Throwable t = new Throwable("Closed due to user request."); 677 Throwable t = new Throwable("Closed due to user request.");
678 close(t, false); 678 close(t, false);
679 } 679 }
680 680
681 public void close(Throwable t, boolean hard) { 681 public void close(Throwable t, boolean hard) {
682 log.debug("Connection.close(%s hard=%b)", t.getMessage(), hard); 682 log.debug(String.format("Connection.close(%s hard=%b)", t.getMessage(), hard));
683 if (cm != null) { 683 if (cm != null) {
684 cm.closeAllChannels(); 684 cm.closeAllChannels();
685 } 685 }
686 686
687 if (tm != null) { 687 if (tm != null) {