summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-03-25 16:13:31 +0100
committerDavid Lönnhager <david.l@mullvad.net>2022-03-28 16:36:54 +0200
commit95d2a66f3b4303407c333ef2abc92effddd2f546 (patch)
tree8abd01ddb4501ef305ec58580d85320c4a16f5cc /mullvad-daemon/src
parent2d3494f3ee886f4c2ec13025833e05e05bd1feac (diff)
downloadmullvadvpn-95d2a66f3b4303407c333ef2abc92effddd2f546.tar.xz
mullvadvpn-95d2a66f3b4303407c333ef2abc92effddd2f546.zip
Don't update allowed endpoint twice
Diffstat (limited to 'mullvad-daemon/src')
-rw-r--r--mullvad-daemon/src/api.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/mullvad-daemon/src/api.rs b/mullvad-daemon/src/api.rs
index 21aa7c6232..99d614a741 100644
--- a/mullvad-daemon/src/api.rs
+++ b/mullvad-daemon/src/api.rs
@@ -99,13 +99,10 @@ impl ApiEndpointUpdaterHandle {
get_allowed_endpoint(address.clone()),
result_tx,
));
- if result_rx.await.is_ok() {
- log::debug!("API endpoint: {}", address);
- true
- } else {
- log::error!("Failed to update allowed endpoint");
- false
- }
+ // Wait for the firewall policy to be updated.
+ let _ = result_rx.await;
+ log::debug!("API endpoint: {}", address);
+ true
}
}
}