ipn/ipnlocal: be consistent in not logging when no notify registered

Some paths already didn't. And in the future I hope to shut all the
notify funcs down end-to-end when nothing is connected (as in the
common case in tailscaled).  Then we can save some JSON encoding work.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1694/head
Brad Fitzpatrick 3 years ago
parent 7c0e58c537
commit 4c3f7c06fc

@ -932,7 +932,6 @@ func (b *LocalBackend) send(n ipn.Notify) {
b.mu.Unlock()
if notifyFunc == nil {
b.logf("nil notify callback; dropping %+v", n)
return
}

Loading…
Cancel
Save