summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-02-04 16:36:54 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-02-04 19:42:11 +0000
commitbd88f628d0f5d183e88c5ea52ba5a1f2703caa5b (patch)
tree3652169b7862355e5693d98f4f473ee765d254b2 /android
parent89cb001d2482c65333aa0b9668c756687ed8fefb (diff)
downloadmullvadvpn-bd88f628d0f5d183e88c5ea52ba5a1f2703caa5b.tar.xz
mullvadvpn-bd88f628d0f5d183e88c5ea52ba5a1f2703caa5b.zip
Fix key generation event override
Diffstat (limited to 'android')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/dataproxy/KeyStatusListener.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/dataproxy/KeyStatusListener.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/dataproxy/KeyStatusListener.kt
index 74b10de728..a4fe30ff30 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/dataproxy/KeyStatusListener.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/dataproxy/KeyStatusListener.kt
@@ -42,7 +42,7 @@ class KeyStatusListener(val daemon: MullvadDaemon) {
val oldStatus = keyStatus
val newStatus = daemon.generateWireguardKey()
val newFailure = newStatus?.failure()
- if (oldStatus is KeygenEvent.NewKey && newStatus != null) {
+ if (oldStatus is KeygenEvent.NewKey && newFailure != null) {
keyStatus = KeygenEvent.NewKey(oldStatus.publicKey,
oldStatus.verified,
newFailure)