Skip to content

Commit

Permalink
ISPN-8900 Make sure sockets are closed if can't connect
Browse files Browse the repository at this point in the history
  • Loading branch information
galderz authored and tristantarrant committed Mar 2, 2018
1 parent 3409d1b commit 82ea10d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -91,6 +91,7 @@ public TcpTransport(SocketAddress originalServerAddress, TransportFactory transp
} catch (Exception e) {
String message = String.format("Could not connect to server: %s", serverAddress);
log.tracef(e, "Could not connect to server: %s", serverAddress);
destroy(); // Destroy just to avoid leaking open sockets
throw new TransportException(message, e, serverAddress);
}
}
Expand Down

0 comments on commit 82ea10d

Please sign in to comment.