diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:19:29 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:29:21 +0200 |
commit | 1068d6b92b905adef34525fbac37a5af7290f4fa (patch) | |
tree | 489aecd3861ff1592d358c8787084e1b89fee036 /receive.go | |
parent | 5e924e540764ec64cdf19f9b146a3c398da4d240 (diff) |
Give bind its own wait group
In a waitgroup, all waits must come after all adds
Diffstat (limited to 'receive.go')
-rw-r--r-- | receive.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -125,11 +125,11 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind Bind) { logDebug := device.log.Debug defer func() { logDebug.Println("Routine: receive incoming IPv" + strconv.Itoa(IP) + " - stopped") - device.state.stopping.Done() + device.net.stopping.Done() }() logDebug.Println("Routine: receive incoming IPv" + strconv.Itoa(IP) + " - starting") - device.state.starting.Done() + device.net.starting.Done() // receive datagrams until conn is closed |