Skip to content

Commit 91b5d10

Browse files
committed
Wait for ipstack to exit when closing netstack
1 parent 2d8652e commit 91b5d10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgengine/netstack/netstack.go

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func Create(logf logger.Logf, tundev *tstun.Wrapper, e wgengine.Engine, mc *magi
201201
func (ns *Impl) Close() error {
202202
ns.ctxCancel()
203203
ns.ipstack.Close()
204+
ns.ipstack.Wait()
204205
return nil
205206
}
206207

0 commit comments

Comments
 (0)