diff --git a/codec/src/main/java/io/netty/handler/codec/embedder/EmbeddedChannel.java b/codec/src/main/java/io/netty/handler/codec/embedder/EmbeddedChannel.java index 9a91dd1ce2..0db038121c 100644 --- a/codec/src/main/java/io/netty/handler/codec/embedder/EmbeddedChannel.java +++ b/codec/src/main/java/io/netty/handler/codec/embedder/EmbeddedChannel.java @@ -76,8 +76,9 @@ class EmbeddedChannel extends AbstractChannel { } @Override - protected void doRegister() throws Exception { + protected Runnable doRegister() throws Exception { state = 1; + return null; } @Override