summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-03-22 10:27:48 +0100
committerDavid Lönnhager <david.l@mullvad.net>2022-03-23 17:02:06 +0100
commit2c02d17b5d99fac22f5fc61aebdc658000f3082c (patch)
tree855899a0bf43f3f225be61ce5c679fb2ce3985aa
parente4ebfaa1131701466bcea1643248d967cc2d40cf (diff)
downloadmullvadvpn-2c02d17b5d99fac22f5fc61aebdc658000f3082c.tar.xz
mullvadvpn-2c02d17b5d99fac22f5fc61aebdc658000f3082c.zip
Fix logout timer in device module
-rw-r--r--mullvad-daemon/src/device.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-daemon/src/device.rs b/mullvad-daemon/src/device.rs
index bdd5620297..c68cae1845 100644
--- a/mullvad-daemon/src/device.rs
+++ b/mullvad-daemon/src/device.rs
@@ -356,7 +356,7 @@ impl AccountManager {
Ok(())
}
- async fn logout_inner(&mut self) -> tokio::task::JoinHandle<()> {
+ fn logout_inner(&mut self) -> tokio::task::JoinHandle<()> {
let prev_data = self.data.take();
let service = self.device_service.clone();
@@ -392,7 +392,7 @@ impl AccountManager {
{
// Remove the existing device if its ID differs. Otherwise, only update
// the data.
- self.logout_inner().await;
+ self.logout_inner();
}
self.data = data.cloned();