diff --git a/device.go b/device.go index 2538648..18e1138 100644 --- a/device.go +++ b/device.go @@ -138,6 +138,9 @@ func deviceUpdateState(device *Device) { device.peers.RLock() for _, peer := range device.peers.keyMap { peer.Start() + if peer.persistentKeepaliveInterval > 0 { + peer.SendKeepalive() + } } device.peers.RUnlock()