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 02:00:03 +03:00
parent e481f4c2cf
commit 5514074861

View File

@ -122,12 +122,10 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
let s_cipher = cipher_shared.clone(); let s_cipher = cipher_shared.clone();
loop { loop {
tokio::select! { if let Ok(bytes) = lrx.try_recv() {
b = lrx.recv() => { FridaLib::traceFromNative(&env, String::from_utf8_lossy(&bytes).to_string());
FridaLib::traceFromNative(&env, String::from_utf8_lossy(&b.unwrap()).to_string());
} }
b = mx.recv() => { if let Ok(bytes) = mx.try_recv() {
let bytes = b.unwrap();
let s_c = s_cipher.lock().await; let s_c = s_cipher.lock().await;
if s_c.is_some() { if s_c.is_some() {
@ -148,5 +146,6 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
} }
} }
} }
}
} }