imap: Don't fail on WouldBlock on ImapBlockingConnection

memfd
Manos Pitsidianakis 2020-02-28 09:11:41 +02:00
parent ca51077f53
commit 6b2a1f7757
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 3 additions and 0 deletions

View File

@ -507,6 +507,9 @@ impl Iterator for ImapBlockingConnection {
return Some(result[0..*prev_res_length].to_vec());
}
}
Err(e) if e.kind() == std::io::ErrorKind::WouldBlock => {
continue;
}
Err(e) => {
debug!(&conn.stream);
debug!(&e);