diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-01 16:59:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-01 17:46:28 +0200 |
commit | 168ef61a638e4875b260edbc51551bae0dc34ac3 (patch) | |
tree | 579a18ee07b9cf5427c9bab187707917215b7e5f /peer.go | |
parent | b34604245ec4dfb50846d0ba28d022be5b756c25 (diff) |
Add missing locks and fix debug output, and try to flush queues
Flushing queues on exit is sort of a partial solution, but this could be
better. Really what we want is for no more packets to be enqueued after
isUp is set to false.
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -195,7 +195,7 @@ func (peer *Peer) Start() { } device := peer.device - device.log.Debug.Println(peer.String(), ": Starting...") + device.log.Debug.Println(peer.String() + ": Starting...") // sanity check : these should be 0 @@ -242,7 +242,7 @@ func (peer *Peer) Stop() { } device := peer.device - device.log.Debug.Println(peer.String(), ": Stopping...") + device.log.Debug.Println(peer.String() + ": Stopping...") // stop & wait for ongoing peer routines |