From 1068d6b92b905adef34525fbac37a5af7290f4fa Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 20 May 2018 06:19:29 +0200 Subject: Give bind its own wait group In a waitgroup, all waits must come after all adds --- device.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'device.go') diff --git a/device.go b/device.go index 6758cbc..7a23350 100644 --- a/device.go +++ b/device.go @@ -35,6 +35,8 @@ type Device struct { } net struct { + starting sync.WaitGroup + stopping sync.WaitGroup mutex sync.RWMutex bind Bind // bind interface port uint16 // listening port -- cgit v1.2.3