diff options
Diffstat (limited to 'mullvad-daemon')
| -rw-r--r-- | mullvad-daemon/src/rpc_uniqueness_check.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/tests/common/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-daemon/src/rpc_uniqueness_check.rs b/mullvad-daemon/src/rpc_uniqueness_check.rs index fd889cdddf..96f1e9c15c 100644 --- a/mullvad-daemon/src/rpc_uniqueness_check.rs +++ b/mullvad-daemon/src/rpc_uniqueness_check.rs @@ -9,7 +9,7 @@ use mullvad_ipc_client::DaemonRpcClient; /// other daemon has stopped. pub fn is_another_instance_running() -> bool { match DaemonRpcClient::new() { - Ok(client) => match client.get_state() { + Ok(mut client) => match client.get_state() { Ok(_) => true, Err(error) => { let chained_error = error.chain_err(|| { diff --git a/mullvad-daemon/tests/common/mod.rs b/mullvad-daemon/tests/common/mod.rs index 84bd84a3ed..5356f4ee1e 100644 --- a/mullvad-daemon/tests/common/mod.rs +++ b/mullvad-daemon/tests/common/mod.rs @@ -99,7 +99,7 @@ impl DaemonRunner { fn request_clean_shutdown(&mut self, _: &mut duct::Handle) -> bool { use self::mullvad_ipc_client::DaemonRpcClient; - if let Ok(rpc_client) = DaemonRpcClient::new() { + if let Ok(mut rpc_client) = DaemonRpcClient::new() { rpc_client.shutdown().is_ok() } else { false |
