summaryrefslogtreecommitdiffhomepage
path: root/peer.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-01 16:59:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-01 17:46:28 +0200
commit168ef61a638e4875b260edbc51551bae0dc34ac3 (patch)
tree579a18ee07b9cf5427c9bab187707917215b7e5f /peer.go
parentb34604245ec4dfb50846d0ba28d022be5b756c25 (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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index f10bfbb..ec411b2 100644
--- a/peer.go
+++ b/peer.go
@@ -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