diff --git a/network/router/default.go b/network/router/default.go index 8af78ef3..0d153920 100644 --- a/network/router/default.go +++ b/network/router/default.go @@ -273,10 +273,8 @@ func (r *router) advertiseTable() error { // advertise all routes as Update events to subscribers if len(events) > 0 { - go func() { - r.advertWg.Add(1) - r.advertiseEvents(Update, events) - }() + r.advertWg.Add(1) + go r.advertiseEvents(Update, events) } case <-r.exit: return nil