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:
Eric Anderson 2019-06-19 17:25:38 -07:00
parent ddbaf743cc
commit 29cb7c4dd4
1 changed files with 1 additions and 1 deletions

View File

@ -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();