Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lnd_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,15 @@ func NewLndServices(cfg *LndServicesConfig) (*GrpcLndServices, error) {

cleanupConn := func() {
closeErr := conn.Close()
if closeErr != nil {
switch {
case closeErr == nil:
// No error.

case errors.Is(closeErr, grpc.ErrClientConnClosing):
log.Debugf("LND connection is already closing: %v",
closeErr)

default:
log.Errorf("Error closing lnd connection: %v", closeErr)
}
}
Expand Down