Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
index 73cbb50cd4..b3de886b71 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
@@ -124,9 +124,10 @@ public class TCPAcceptor extends Acceptor implements ITCPAcceptor, ITCPPassiveSe
public void handleRegistration(ITCPSelector selector, ServerSocketChannel serverSocketChannel)
{
+ InetSocketAddress addr = null;
+
try
{
- InetSocketAddress addr = null;
if (address != null)
{
addr = new InetSocketAddress(InetAddress.getByName(address), port);
@@ -156,7 +157,7 @@ public class TCPAcceptor extends Acceptor implements ITCPAcceptor, ITCPPassiveSe
}
catch (Exception ex)
{
- OM.LOG.error(ex);
+ OM.LOG.error("Problem while binding " + addr, ex);
deactivateAsync();
}
finally

Back to the top