diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-11-24 15:18:03 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-11-26 10:42:45 +0100 |
| commit | dfadebf2c86474b4ae33bce37bfcd934a0bcce1f (patch) | |
| tree | 79910b25de2b334c43d7e01ef3a07404b083dbee /mullvad-rpc/src | |
| parent | 9bfca257349dad9cde2aac9b1516e71f33f25a23 (diff) | |
| download | mullvadvpn-dfadebf2c86474b4ae33bce37bfcd934a0bcce1f.tar.xz mullvadvpn-dfadebf2c86474b4ae33bce37bfcd934a0bcce1f.zip | |
Don't pass tokio runtime handles to async functions
Diffstat (limited to 'mullvad-rpc/src')
| -rw-r--r-- | mullvad-rpc/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-rpc/src/lib.rs b/mullvad-rpc/src/lib.rs index 61654cab1c..956db21e9d 100644 --- a/mullvad-rpc/src/lib.rs +++ b/mullvad-rpc/src/lib.rs @@ -128,12 +128,12 @@ impl MullvadRpcRuntime { /// Try to use the cache directory first, and fall back on the resource directory /// if it fails. pub async fn with_cache( - handle: tokio::runtime::Handle, resource_dir: Option<&Path>, cache_dir: &Path, write_changes: bool, #[cfg(target_os = "android")] socket_bypass_tx: Option<mpsc::Sender<SocketBypassRequest>>, ) -> Result<Self, Error> { + let handle = tokio::runtime::Handle::current(); #[cfg(feature = "api-override")] if *DISABLE_ADDRESS_ROTATION { return Self::new_inner( |
