comparison src/ch/ethz/ssh2/ServerConnection.java @ 321:c19b24adf6c9 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 08:49:37 -0700
parents 071eccdff8ea
children 37f4a3b506d9
comparison
equal deleted inserted replaced
320:5afb8c1a54b9 321:c19b24adf6c9
360 synchronized (state) { 360 synchronized (state) {
361 if (state.cm != null) 361 if (state.cm != null)
362 state.cm.closeAllChannels(); 362 state.cm.closeAllChannels();
363 363
364 if (state.tm != null) { 364 if (state.tm != null) {
365 state.tm.close(); 365 state.tm.close(new Throwable("Closed due to user request."), false);
366 } 366 }
367 } 367 }
368 } 368 }
369 369
370 public void close(IOException t) { 370 public void close(IOException t) {
371 synchronized (state) { 371 synchronized (state) {
372 if (state.cm != null) 372 if (state.cm != null)
373 state.cm.closeAllChannels(); 373 state.cm.closeAllChannels();
374 374
375 if (state.tm != null) { 375 if (state.tm != null) {
376 state.tm.close(t); 376 state.tm.close(t, false);
377 } 377 }
378 } 378 }
379 } 379 }
380 } 380 }