mirror of
https://github.com/apache/jclouds.git
synced 2025-02-07 02:29:25 +00:00
prevent assertions in sshj from borking tests
This commit is contained in:
parent
bab3852140
commit
6407700de4
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user