mirror of https://github.com/grpc/grpc-java.git
Remove extraneous shutdown condition in NettyClientTransport
We didn't do the extraneous check in notifyTerminated()...
This commit is contained in:
parent
6236968d4b
commit
be965b86ab
|
|
@ -227,9 +227,7 @@ class NettyClientTransport implements ClientTransport {
|
||||||
boolean notifyShutdown;
|
boolean notifyShutdown;
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
notifyShutdown = !shutdown;
|
notifyShutdown = !shutdown;
|
||||||
if (!shutdown) {
|
shutdown = true;
|
||||||
shutdown = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (notifyShutdown) {
|
if (notifyShutdown) {
|
||||||
listener.transportShutdown(status);
|
listener.transportShutdown(status);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue