Skip to content

Commit 283a484

Browse files
committed
Create device proxy on tokio runtime
1 parent 2adee19 commit 283a484

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mullvad-api/src/ffi/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ impl FfiClient {
196196
}
197197

198198
fn rest_handle(&self) -> MullvadRestHandle {
199-
self.api_runtime
200-
.static_mullvad_rest_handle(self.api_hostname.clone())
199+
self.tokio_handle().block_on(async {
200+
self.api_runtime
201+
.static_mullvad_rest_handle(self.api_hostname.clone())
202+
})
201203
}
202204

203205
fn device_proxy(&self) -> DevicesProxy {

0 commit comments

Comments
 (0)