wgengine: also close link monitor on NewUserspaceEngineAdvanced error

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1409/head
Brad Fitzpatrick 4 years ago
parent 719de8f0e1
commit 0eea490724

@ -263,6 +263,7 @@ func newUserspaceEngineAdvanced(conf EngineConfig) (_ Engine, reterr error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
closePool.add(mon)
e.linkMon = mon e.linkMon = mon
endpointsFn := func(endpoints []string) { endpointsFn := func(endpoints []string) {

Loading…
Cancel
Save