diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-05 06:09:30 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-05 06:09:30 +0200 |
commit | c29428b075aa4476f3f3f0b97e580c2f4b8bb683 (patch) | |
tree | b3aaa9afc4008183272c6c959802e8a5c6aedb2c /receive.go | |
parent | a46401bbb151d8f1e662dc16b612426352138c1e (diff) |
Reorder stopping messages so that logs are coherent
Diffstat (limited to 'receive.go')
-rw-r--r-- | receive.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -238,8 +238,8 @@ func (device *Device) RoutineDecryption() { logDebug := device.log.Debug defer func() { - device.state.stopping.Done() logDebug.Println("Routine: decryption worker - stopped") + device.state.stopping.Done() }() logDebug.Println("Routine: decryption worker - started") @@ -304,8 +304,8 @@ func (device *Device) RoutineHandshake() { logDebug := device.log.Debug defer func() { - device.state.stopping.Done() logDebug.Println("Routine: handshake worker - stopped") + device.state.stopping.Done() }() logDebug.Println("Routine: handshake worker - started") @@ -534,8 +534,8 @@ func (peer *Peer) RoutineSequentialReceiver() { logDebug := device.log.Debug defer func() { - peer.routines.stopping.Done() logDebug.Println(peer, ": Routine: sequential receiver - stopped") + peer.routines.stopping.Done() }() logDebug.Println(peer, ": Routine: sequential receiver - started") |