Skip to content

Commit

Permalink
Create device proxy on tokio runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Feb 21, 2024
1 parent 2adee19 commit 283a484
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mullvad-api/src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ impl FfiClient {
}

fn rest_handle(&self) -> MullvadRestHandle {
self.api_runtime
.static_mullvad_rest_handle(self.api_hostname.clone())
self.tokio_handle().block_on(async {
self.api_runtime
.static_mullvad_rest_handle(self.api_hostname.clone())
})
}

fn device_proxy(&self) -> DevicesProxy {
Expand Down

0 comments on commit 283a484

Please sign in to comment.