[#880] correctly use methods which take a ChannelFuture as parameter
This commit is contained in:
parent
b49b3d9c56
commit
926a20f105
@ -282,7 +282,7 @@ public class IdleStateHandler extends ChannelStateHandlerAdapter implements Chan
|
|||||||
@Override
|
@Override
|
||||||
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress,
|
public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress,
|
||||||
ChannelFuture future) throws Exception {
|
ChannelFuture future) throws Exception {
|
||||||
ctx.connect(remoteAddress, localAddress);
|
ctx.connect(remoteAddress, localAddress, future);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -309,7 +309,7 @@ public class IdleStateHandler extends ChannelStateHandlerAdapter implements Chan
|
|||||||
writerIdleCount = allIdleCount = 0;
|
writerIdleCount = allIdleCount = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ctx.sendFile(region);
|
ctx.sendFile(region, future);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initialize(ChannelHandlerContext ctx) {
|
private void initialize(ChannelHandlerContext ctx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user