[#4347] Remove not needed write operation from example.

Motivation:

The proxy example contains some code that is not needed. This can confuse the reader.

Modifications:

Remove the not needed ctx.write(...).

Result:

Less confusing code.
This commit is contained in:
Norman Maurer 2015-10-12 10:08:29 +02:00
parent d6a00d0642
commit 4403b1a7ea

View File

@ -15,7 +15,6 @@
*/
package io.netty.example.proxy;
import io.netty.buffer.Unpooled;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
@ -33,7 +32,6 @@ public class HexDumpProxyBackendHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelActive(ChannelHandlerContext ctx) {
ctx.read();
ctx.write(Unpooled.EMPTY_BUFFER);
}
@Override