Don't throw NPE when close() is called without prior start()
@@ -38,7 +38,9 @@ public class RpcServer implements AutoCloseable {
@Override
public void close() {
+ if (acceptor != null) {
acceptor.shutdown().join();
+ }
supervisor.transport().shutdown().join();
}
}
