prevent assertions in sshj from borking tests

This commit is contained in:
Adrian Cole 2012-05-18 15:58:01 -07:00
parent bab3852140
commit 6407700de4
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ public class SSHClientConnection implements Connection<SSHClient> {
if (ssh != null && ssh.isConnected()) {
try {
ssh.disconnect();
} catch (AssertionError e) {
// already connected
} catch (IOException e) {
logger.debug("<< exception disconnecting from %s: %s", e, e.getMessage());
}