diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-04-27 10:35:24 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-04-27 11:05:41 +0200 |
| commit | 5b48f5c8cbebe8e8db440d8a70ccd318930f2d6f (patch) | |
| tree | 6caaa9d3986cd56e440d9e3df3406691a1ef545f | |
| parent | 78e3c495722775c7cadbd798a5d1cbf9f9150c65 (diff) | |
| download | mullvadvpn-5b48f5c8cbebe8e8db440d8a70ccd318930f2d6f.tar.xz mullvadvpn-5b48f5c8cbebe8e8db440d8a70ccd318930f2d6f.zip | |
Remove old device correctly
| -rw-r--r-- | mullvad-daemon/src/device/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs index 8047a725af..1321fb3e69 100644 --- a/mullvad-daemon/src/device/mod.rs +++ b/mullvad-daemon/src/device/mod.rs @@ -595,7 +595,7 @@ impl AccountManager { self.last_validation = None; if let Some(old_data) = self.data.take() { - if data.as_ref().map(|d| &d.device.id) == Some(&old_data.device.id) { + if data.as_ref().map(|d| &d.device.id) != Some(&old_data.device.id) { tokio::spawn(self.logout_api_call(old_data)); } } |
