[#880] correctly use methods which take a ChannelFuture as parameter

This commit is contained in:
Norman Maurer 2012-12-31 11:43:05 +01:00
parent b49b3d9c56
commit 926a20f105

View File

@ -282,7 +282,7 @@ public class IdleStateHandler extends ChannelStateHandlerAdapter implements Chan
@Override
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress,
ChannelFuture future) throws Exception {
ctx.connect(remoteAddress, localAddress);
ctx.connect(remoteAddress, localAddress, future);
}
@Override
@ -309,7 +309,7 @@ public class IdleStateHandler extends ChannelStateHandlerAdapter implements Chan
writerIdleCount = allIdleCount = 0;
}
});
ctx.sendFile(region);
ctx.sendFile(region, future);
}
private void initialize(ChannelHandlerContext ctx) {