diff --git a/netty/src/main/java/io/grpc/transport/netty/NettyClientTransport.java b/netty/src/main/java/io/grpc/transport/netty/NettyClientTransport.java index afde5635e7..06b84de5b7 100644 --- a/netty/src/main/java/io/grpc/transport/netty/NettyClientTransport.java +++ b/netty/src/main/java/io/grpc/transport/netty/NettyClientTransport.java @@ -227,9 +227,7 @@ class NettyClientTransport implements ClientTransport { boolean notifyShutdown; synchronized (this) { notifyShutdown = !shutdown; - if (!shutdown) { - shutdown = true; - } + shutdown = true; } if (notifyShutdown) { listener.transportShutdown(status);