master
Lynne Megido 3 months ago
parent 944360f9ab
commit 20587fd663
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90
  1. 3
      src/files.rs

@ -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,
}
}

Loading…
Cancel
Save