diff options
Diffstat (limited to 'device/timers.go')
-rw-r--r-- | device/timers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/timers.go b/device/timers.go index e94da36..dbd4c66 100644 --- a/device/timers.go +++ b/device/timers.go @@ -73,7 +73,7 @@ func (timer *Timer) IsPending() bool { } func (peer *Peer) timersActive() bool { - return peer.isRunning.Get() && peer.device != nil && peer.device.isUp.Get() && len(peer.device.peers.keyMap) > 0 + return peer.isRunning.Get() && peer.device != nil && peer.device.isUp.Get() && !peer.device.peers.empty.Get() } func expiredRetransmitHandshake(peer *Peer) { |