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, 2 insertions, 1 deletions
diff --git a/device/peer.go b/device/peer.go
index abe8a08..3e4f4ec 100644
--- a/device/peer.go
+++ b/device/peer.go
@@ -107,6 +107,7 @@ func (device *Device) NewPeer(pk NoisePublicKey) (*Peer, error) {
device.peers.empty.Set(false)
// start peer
+ peer.timersInit()
if peer.device.isUp() {
peer.Start()
}
@@ -183,7 +184,7 @@ func (peer *Peer) Start() {
}
peer.device.queue.encryption.wg.Add(1) // keep encryption queue open for our writes
- peer.timersInit()
+ peer.timersStart()
go peer.RoutineSequentialSender()
go peer.RoutineSequentialReceiver()