Merge pull request #3059 from champo/rpc_drop

lnd: close the wallet unlock grpc server
This commit is contained in:
Johan T. Halseth
2019-08-26 14:18:33 +02:00
committed by GitHub

1
lnd.go
View File

@@ -887,6 +887,7 @@ func waitForWalletPassword(grpcEndpoints, restEndpoints []net.Addr,
// Set up a new PasswordService, which will listen for passwords
// provided over RPC.
grpcServer := grpc.NewServer(serverOpts...)
defer grpcServer.GracefulStop()
chainConfig := cfg.Bitcoin
if registeredChains.PrimaryChain() == litecoinChain {