summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-01 10:44:41 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-30 09:51:49 +0200
commit78c2e65370cc618edb3126f7d85a7778a7bf8103 (patch)
treedeb7b9ba79108458a6b20032bc13a8f80fcca893
parentec037d64d7f79321ea115eaa3a593f7d160721f6 (diff)
downloadmullvadvpn-78c2e65370cc618edb3126f7d85a7778a7bf8103.tar.xz
mullvadvpn-78c2e65370cc618edb3126f7d85a7778a7bf8103.zip
Preserve returned error by update access method function
-rw-r--r--mullvad-daemon/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs
index e53458071d..33f904947c 100644
--- a/mullvad-daemon/src/lib.rs
+++ b/mullvad-daemon/src/lib.rs
@@ -3052,10 +3052,7 @@ impl Daemon {
tx: ResponseTx<(), Error>,
method: AccessMethodSetting,
) {
- let result = self
- .update_access_method(method)
- .await
- .map_err(Error::AccessMethodError);
+ let result = self.update_access_method(method).await;
Self::oneshot_send(tx, result, "update_api_access_method response");
}