diff options
Diffstat (limited to 'ui/src/main/java/com/wireguard')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt index 866601d1..03529454 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -237,7 +237,7 @@ class ObservableTunnel internal constructor( private fun onPersistentKeepaliveChanged(publicKey: Key, newPersistentKeepalive: Int?) { var peer: PeerDetail = lookupPeer(publicKey) - peer.persistentKeepalive = newPersistentKeepalive + peer.persistentKeepalive = Optional.ofNullable(newPersistentKeepalive) } override fun onAllowedIpsChange(publicKey: Key, addNetworks: List<InetNetwork>?, removeNetworks: List<InetNetwork>?) { |