diff --git a/src/mobile.rs b/src/mobile.rs index 6af21e3..60cedf3 100644 --- a/src/mobile.rs +++ b/src/mobile.rs @@ -10,7 +10,7 @@ use robusta_jni::jni::JNIEnv; pub fn mobile_run(cfg_raw: String, close_fd_on_drop: bool, tun_fd: i32, env: &JNIEnv) -> c_int { let config: ClientConfiguration = serde_yaml::from_slice(hex::decode(cfg_raw).unwrap().as_slice()).expect("Bad client config file structure"); - client::client_mode(config, tun_fd, env); // Runtime::new().unwrap().block_on() + Runtime::new().unwrap().block_on(client::client_mode(config, tun_fd, env)); 0 /*let block = async move { let mut config = tun2::Configuration::default();