mirror of https://github.com/grpc/grpc-java.git
netty: Use await instead of sync
We only care about when closing is done, not whether it is successful or not. If there's a failure, we're already going to log a warning. Use await to avoid throwing unexpectedly.
This commit is contained in:
parent
ddbaf743cc
commit
29cb7c4dd4
|
@ -284,7 +284,7 @@ class NettyServer implements InternalServer, InternalWithLogId {
|
|||
}
|
||||
});
|
||||
try {
|
||||
channel.closeFuture().sync();
|
||||
channel.closeFuture().await();
|
||||
} catch (InterruptedException e) {
|
||||
log.log(Level.FINE, "Interrupted while shutting down", e);
|
||||
Thread.currentThread().interrupt();
|
||||
|
|
Loading…
Reference in New Issue