diff options
Diffstat (limited to 'device/peer.go')
-rw-r--r-- | device/peer.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/device/peer.go b/device/peer.go index c8b825d..5bd52df 100644 --- a/device/peer.go +++ b/device/peer.go @@ -107,15 +107,12 @@ func (device *Device) NewPeer(pk NoisePublicKey) (*Peer, error) { // reset endpoint peer.endpoint = nil + // init timers + peer.timersInit() + // add device.peers.keyMap[pk] = peer - // start peer - peer.timersInit() - if peer.device.isUp() { - peer.Start() - } - return peer, nil } |