diff --git a/lnd.go b/lnd.go index 5f2f61dd..51f6e8a9 100644 --- a/lnd.go +++ b/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)