summaryrefslogtreecommitdiffhomepage
path: root/device/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/peer.go')
-rw-r--r--device/peer.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/device/peer.go b/device/peer.go
index 31b75c7..c094160 100644
--- a/device/peer.go
+++ b/device/peer.go
@@ -17,7 +17,7 @@ import (
)
const (
- PeerRoutineNumber = 3
+ PeerRoutineNumber = 2
)
type Peer struct {
@@ -287,7 +287,6 @@ func (peer *Peer) Stop() {
peer.queue.Lock()
close(peer.queue.nonce)
- close(peer.queue.outbound)
close(peer.queue.inbound)
peer.queue.Unlock()