This commit is contained in:
Lynne Megido 2022-05-02 18:13:06 +10:00
parent 944360f9ab
commit 20587fd663
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -284,9 +284,8 @@ pub fn mime_type<T: MimeDb>(db: &T, path: &Path) -> io::Result<Option<Mime>> {
file.seek(SeekFrom::Start(0))?;
read = file.read(&mut buffer);
match read {
Ok(_) => break,
Err(ref e) if e.kind() == io::ErrorKind::Interrupted => continue,
Err(_) => break,
Err(_) | Ok(_) => break,
}
}