diff --git a/src/main/java/org/jboss/netty/channel/local/LocalAddress.java b/src/main/java/org/jboss/netty/channel/local/LocalAddress.java index 3ba396f15c..4789a024b0 100644 --- a/src/main/java/org/jboss/netty/channel/local/LocalAddress.java +++ b/src/main/java/org/jboss/netty/channel/local/LocalAddress.java @@ -101,8 +101,27 @@ public final class LocalAddress extends SocketAddress implements Comparable b) { + return 1; + } else { + return 0; + } + } else { + return -1; + } + } else { + if (o.ephemeral) { + return 1; + } else { + return getId().compareTo(o.getId()); + } + } } @Override