Register NioSocketChannel
[netconf.git] / transport / transport-tcp / src / main / java / org / opendaylight / netconf / transport / tcp / NettyTransportSupport.java
index e89c700ef72372bc266665a14a79581cd9ffcb6f..ed12a12227e174394a381de7e5169f04f350646d 100644 (file)
@@ -30,7 +30,7 @@ import org.slf4j.LoggerFactory;
 @NonNullByDefault
 public final class NettyTransportSupport {
     private static final Logger LOG = LoggerFactory.getLogger(NettyTransportSupport.class);
-    private static final AbstractNettyImpl IMPL = Epoll.isAvailable() ? new EpollNettyImpl() : new NioNettyImpl();
+    private static final AbstractNettyImpl IMPL = Epoll.isAvailable() ? new EpollNettyImpl() : NioNettyImpl.INSTANCE;
 
     static {
         LOG.info("Netty transport backed by {}", IMPL);