summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-05-09 19:10:32 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-05-11 12:54:16 +0000
commit89c02c5d9534afeaeae957471ad00a56e2f8184c (patch)
tree88e5016f5bf5ab1ddfa2a9e9b193b16c4794f4b5 /android/src
parentdf79f0fbf71a1619457a422185722e2c772e0750 (diff)
downloadmullvadvpn-89c02c5d9534afeaeae957471ad00a56e2f8184c.tar.xz
mullvadvpn-89c02c5d9534afeaeae957471ad00a56e2f8184c.zip
Save subscription ID for unsubscribing later
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
index 314a344efa..1a6d19e3a0 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
@@ -38,7 +38,7 @@ class ForegroundNotificationManager(
synchronized(this) {
if (value != null) {
connectionProxy = value.connectionProxy.apply {
- onStateChange.subscribe { state ->
+ connectionListenerId = onStateChange.subscribe { state ->
tunnelState = state
}
}