Continue processing Sync if no routes were returned from router Query

This commit is contained in:
Milos Gajdos 2020-01-17 12:58:13 +00:00
parent 607a226e34
commit 624f1c1980
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -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
}