mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-06 05:01:53 -07:00
Merge pull request #39 from EFForg/fix-asyncio
lib: ignore WriteZero for flush as well
This commit is contained in:
@@ -133,8 +133,11 @@ impl DiagDevice {
|
|||||||
return Err(DiagDeviceError::DeviceWriteFailed(err));
|
return Err(DiagDeviceError::DeviceWriteFailed(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.file.flush().await
|
if let Err(err) = self.file.flush().await {
|
||||||
.map_err(DiagDeviceError::DeviceWriteFailed)?;
|
if err.kind() != ErrorKind::WriteZero {
|
||||||
|
return Err(DiagDeviceError::DeviceWriteFailed(err));
|
||||||
|
}
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user