summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
index 24c62bc2c2..8cae8baee1 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
@@ -33,7 +33,7 @@ class AccountCache(val daemon: MullvadDaemon, val settingsListener: SettingsList
jobTracker.newBackgroundJob("fetch") {
var retryAttempt = 0
- while (true) {
+ while (onAccountDataChange != null) {
val result = daemon.getAccountData(account)
if (result is GetAccountDataResult.Ok) {