Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ protected void establishConnection(SelectionKey currentKey)
String localAddrText = null;
String remoteAddrText = null;

try
if (localAddr instanceof InetSocketAddress)
{
final InetSocketAddress localInetAddr = (InetSocketAddress) localAddr;
final InetAddress ipAddress = localInetAddr.getAddress();
Expand All @@ -1006,12 +1006,8 @@ protected void establishConnection(SelectionKey currentKey)
localAddrText = ipAddress.getHostAddress();
}
}
catch (ClassCastException ignored)
{
// ignored
}

try
if (remoteAddr instanceof InetSocketAddress)
{
final InetSocketAddress remoteInetAddr = (InetSocketAddress) remoteAddr;
final InetAddress ipAddress = remoteInetAddr.getAddress();
Expand All @@ -1020,10 +1016,6 @@ protected void establishConnection(SelectionKey currentKey)
remoteAddrText = ipAddress.getHostAddress();
}
}
catch (ClassCastException ignored)
{
// ignored
}

final String errorDescription =
this.getServiceName() + " connector: Connection " +
Expand Down