diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-01-20 21:36:41 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-03-25 18:19:58 +0000 |
| commit | 9fcc829c2b8a278979e88073c83c88856be49d6a (patch) | |
| tree | 6bc747a22756cfdddbbf75f919ed0ac2e9429609 /android/src/main | |
| parent | e5653d5b6a59945b9cbbb928752310c75c118a75 (diff) | |
| download | mullvadvpn-9fcc829c2b8a278979e88073c83c88856be49d6a.tar.xz mullvadvpn-9fcc829c2b8a278979e88073c83c88856be49d6a.zip | |
Remove callback in `LocationInfoCache.onDestory`
Diffstat (limited to 'android/src/main')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/LocationInfoCache.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/LocationInfoCache.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/LocationInfoCache.kt index ad14c45c8e..cc325d3231 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/LocationInfoCache.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/LocationInfoCache.kt @@ -90,6 +90,8 @@ class LocationInfoCache( connectivityListener.connectivityNotifier.unsubscribe(this) connectionProxy.onStateChange.unsubscribe(this) fetchRequestChannel.close() + + onNewLocation = null } private fun updateSelectedRelayLocation(relayItem: RelayItem?) { |
