modified: src/client.rs
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
All checks were successful
gitea/Frida-android-native/pipeline/head This commit looks good
This commit is contained in:
parent
865c5deda2
commit
92fbc69b7e
@ -47,7 +47,8 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
|
||||
|
||||
let lltx = ltx.clone();
|
||||
tokio::spawn(async move {
|
||||
while let Ok(bytes) = rx.recv() {
|
||||
loop {
|
||||
if let Ok(bytes) = rx.recv() {
|
||||
lltx.send("Write to tun.".as_bytes().to_vec());
|
||||
if let Err(e) = dev_writer.write_all(&bytes).await {
|
||||
lltx.send(format!("Writing error: {:?}", e).as_bytes().to_vec());
|
||||
@ -56,6 +57,7 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, env: &JNIE
|
||||
lltx.send(format!("Flushing error: {:?}", e).as_bytes().to_vec());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
let llltx = ltx.clone();
|
||||
|
Loading…
x
Reference in New Issue
Block a user