mirror of https://github.com/grpc/grpc-java.git
parent
86ef8e70b5
commit
c10f5781b9
|
|
@ -132,14 +132,14 @@ class NettyClientTransport implements ManagedClientTransport {
|
||||||
@Override
|
@Override
|
||||||
public void operationComplete(ChannelFuture future) throws Exception {
|
public void operationComplete(ChannelFuture future) throws Exception {
|
||||||
if (!future.isSuccess()) {
|
if (!future.isSuccess()) {
|
||||||
ChannelHandlerContext ctx = channel.pipeline().context(handler);
|
ChannelHandlerContext ctx = future.channel().pipeline().context(handler);
|
||||||
if (ctx != null) {
|
if (ctx != null) {
|
||||||
// NettyClientHandler doesn't propagate exceptions, but the negotiator will need the
|
// NettyClientHandler doesn't propagate exceptions, but the negotiator will need the
|
||||||
// exception to fail any writes. Note that this fires after handler, because it is as if
|
// exception to fail any writes. Note that this fires after handler, because it is as if
|
||||||
// handler was propagating the notification.
|
// handler was propagating the notification.
|
||||||
ctx.fireExceptionCaught(future.cause());
|
ctx.fireExceptionCaught(future.cause());
|
||||||
}
|
}
|
||||||
channel.pipeline().fireExceptionCaught(future.cause());
|
future.channel().pipeline().fireExceptionCaught(future.cause());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).channel();
|
}).channel();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue