lnd: ensure the gRPC listener is closed once the daemon exits
This commit is contained in:
parent
3e4981d15f
commit
8053f841e4
1
lnd.go
1
lnd.go
@ -181,6 +181,7 @@ func lndMain() error {
|
||||
fmt.Printf("failed to listen: %v", err)
|
||||
return err
|
||||
}
|
||||
defer lis.Close()
|
||||
go func() {
|
||||
rpcsLog.Infof("RPC server listening on %s", lis.Addr())
|
||||
grpcServer.Serve(lis)
|
||||
|
Loading…
Reference in New Issue
Block a user