From 624f1c1980b4f7a165f66b875bf5fe9e998b76a1 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Fri, 17 Jan 2020 12:58:13 +0000 Subject: [PATCH] Continue processing Sync if no routes were returned from router Query --- network/default.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/default.go b/network/default.go index 098920c1..ad83c133 100644 --- a/network/default.go +++ b/network/default.go @@ -942,7 +942,7 @@ func (n *network) processNetChan(listener tunnel.Listener) { } routes, err := n.router.Table().Query(q...) - if err != nil { + if err != nil && err != router.ErrRouteNotFound { log.Debugf("Network node %s failed listing best routes for %s: %v", n.id, route.Service, err) continue } @@ -1286,7 +1286,7 @@ func (n *network) getProtoRoutes() ([]*pbRtr.Route, error) { } routes, err := n.router.Table().Query(q...) - if err != nil { + if err != nil && err != router.ErrRouteNotFound { return nil, err }