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-13 19:53:11 +03:00
parent 0255e1cfef
commit f23f931cdd

View File

@ -47,9 +47,10 @@ pub async fn client_mode(client_config: ClientConfiguration, fd: i32, close_toke
let (cancel_dr, mut listen_dr) = oneshot::channel();
let dev_read_task = tokio::spawn(async move {
let mut buf = vec![0; 1400]; // mtu
let listen = listen_dr.clone();
loop {
tokio::select! {
_ = listen_dr => {
_ = listen => {
return;
}
rr = dev_reader.read(&mut buf) => {