modified: frida_core/src/android_tun.rs

This commit is contained in:
Michael Wain 2024-12-10 22:34:13 +03:00
parent d1b74f14bd
commit eb15b4584e

View File

@ -24,7 +24,7 @@ pub struct DeviceReader {
impl DeviceWriter {
pub async fn write(&mut self, buf: &Vec<u8>) -> Result<usize, Box<dyn Error>> {
if self.writer.is_some() {
return Ok(self.writer.write(buf).await?);
return Ok(self.writer.unwrap().write(buf).await?);
}
Ok(0)
}