diff --git a/routing/router.go b/routing/router.go index dc133b9b..f5ee52f1 100644 --- a/routing/router.go +++ b/routing/router.go @@ -897,6 +897,9 @@ func (r *ChannelRouter) pruneZombieChans() error { } log.Infof("Pruning %v zombie channels", len(chansToPrune)) + if len(chansToPrune) == 0 { + return nil + } // With the set of zombie-like channels obtained, we'll do another pass // to delete them from the channel graph.