From c29428b075aa4476f3f3f0b97e580c2f4b8bb683 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 5 May 2018 06:09:30 +0200 Subject: Reorder stopping messages so that logs are coherent --- send.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'send.go') diff --git a/send.go b/send.go index e41be83..4ed084d 100644 --- a/send.go +++ b/send.go @@ -200,8 +200,8 @@ func (peer *Peer) RoutineNonce() { logDebug := device.log.Debug defer func() { - peer.routines.stopping.Done() logDebug.Println(peer, ": Routine: nonce worker - stopped") + peer.routines.stopping.Done() }() peer.routines.starting.Done() @@ -274,8 +274,8 @@ func (device *Device) RoutineEncryption() { logDebug := device.log.Debug defer func() { - device.state.stopping.Done() logDebug.Println("Routine: encryption worker - stopped") + device.state.stopping.Done() }() logDebug.Println("Routine: encryption worker - started") @@ -348,8 +348,8 @@ func (peer *Peer) RoutineSequentialSender() { logDebug := device.log.Debug defer func() { - peer.routines.stopping.Done() logDebug.Println(peer, ": Routine: sequential sender - stopped") + peer.routines.stopping.Done() }() logDebug.Println(peer, ": Routine: sequential sender - started") -- cgit v1.2.3