mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-08 20:28:04 +02:00
lnd: close the wallet unlock grpc server
The server was kept alive long after it stopped being used. This caused problems for services using long-lived GRPC connections which might be created before wallet unlocked. They got stuck connected to the wallet unlock service needing a restart.
This commit is contained in:
parent
7767eecbb8
commit
88400f5b09
1
lnd.go
1
lnd.go
@ -879,6 +879,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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user