From 0eea49072400fe002a2b81154102a2782d63a028 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 27 Feb 2021 19:11:23 -0800 Subject: [PATCH] wgengine: also close link monitor on NewUserspaceEngineAdvanced error Signed-off-by: Brad Fitzpatrick --- wgengine/userspace.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wgengine/userspace.go b/wgengine/userspace.go index fcbdd1eeb..79512392e 100644 --- a/wgengine/userspace.go +++ b/wgengine/userspace.go @@ -263,6 +263,7 @@ func newUserspaceEngineAdvanced(conf EngineConfig) (_ Engine, reterr error) { if err != nil { return nil, err } + closePool.add(mon) e.linkMon = mon endpointsFn := func(endpoints []string) {