modified: src/client.rs
Some checks failed
gitea/Frida-android-native/pipeline/head There was a failure building this commit

This commit is contained in:
Michael Wain 2024-10-08 01:21:32 +03:00
parent d533094ac3
commit 65a51cdbd2

View File

@ -46,9 +46,12 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
let cipher_shared: Arc<Mutex<Option<x25519_dalek::SharedSecret>>> = Arc::new(Mutex::new(None));
let m_env = Mutex::new(env);
tokio::spawn(async move {
while let Ok(bytes) = lrx.recv() {
let env = m_env.lock().await;
FridaLib::traceFromNative(env, String::from_utf8_lossy(&bytes).to_string());
drop(env);
}
});