modified: frida_core/src/android_tun.rs
This commit is contained in:
parent
d1b74f14bd
commit
eb15b4584e
@ -24,7 +24,7 @@ pub struct DeviceReader {
|
|||||||
impl DeviceWriter {
|
impl DeviceWriter {
|
||||||
pub async fn write(&mut self, buf: &Vec<u8>) -> Result<usize, Box<dyn Error>> {
|
pub async fn write(&mut self, buf: &Vec<u8>) -> Result<usize, Box<dyn Error>> {
|
||||||
if self.writer.is_some() {
|
if self.writer.is_some() {
|
||||||
return Ok(self.writer.write(buf).await?);
|
return Ok(self.writer.unwrap().write(buf).await?);
|
||||||
}
|
}
|
||||||
Ok(0)
|
Ok(0)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user