summaryrefslogtreecommitdiffhomepage
path: root/device.go
diff options
context:
space:
mode:
Diffstat (limited to 'device.go')
-rw-r--r--device.go3
1 files changed, 3 insertions, 0 deletions
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()