title: Netty channelRead not called
body: <p>I'm trying to make multiple <code>Netty</code> clients communicate with each other. I encountered a problem while trying this. When I write to a channel it does not call <code>NettyClientHandler#channelRead</code>.</p>
  
  <p><code>NettyClient</code> class:</p>
  
  <pre><code>public class NettyClient
  {
      private static NettyClient client;
      private int port;
      private Channel channel;
  
      public NettyClient(int port)
      {
          this.port = port;
      }
  
      public static void start(final int port)
      {
          BungeeCord.getInstance().getScheduler().runAsync(AzideaCord.getInstance(), new Runnable()
          {
              @Override
              public void run()
              {
                  client = new NettyClient(port);
                  client.run();
              }
          });
      }
  
      private void run()
      {
          EventLoopGroup group = new NioEventLoopGroup();
  
          try
          {
              Bootstrap bootstrap = new Bootstrap()
                  .group(group)
                  .channel(NioSocketChannel.class)
                  .handler(new NettyClientInitializer());
  
              channel = bootstrap.bind(port).sync().channel();
              System.out.println("[Netty] Connected to localhost:" + port + ".");
              channel.write("test" + "\r\n");
          }
          catch(InterruptedException e)
          {
              e.printStackTrace();
          }
          finally
          {
              group.shutdownGracefully();
          }
      }
  }
  </code></pre>
  
  <p><code>NettyClientHandler</code> class:</p>
  
  <pre><code>public class NettyClientHandler extends ChannelInboundHandlerAdapter
  {
      // Never called
      @Override
      public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
      {
          System.out.println("Msg: " + msg); 
      }
  }
  </code></pre>
  
  <p><code>NettyClientInitializer</code> class:</p>
  
  <pre><code>public class NettyClientInitializer extends ChannelInitializer&lt;SocketChannel&gt;
  {
      @Override
      protected void initChannel(SocketChannel channel) throws Exception
      {
          ChannelPipeline pipeline = channel.pipeline();
          pipeline.addLast(new DelimiterBasedFrameDecoder(8192, Delimiters.lineDelimiter()));
          pipeline.addLast(new StringDecoder());
          pipeline.addLast(new StringEncoder());
          pipeline.addLast(new NettyClientHandler());
      }
  }
  </code></pre>