diff --git a/src/imap_stream.rs b/src/imap_stream.rs index 039ddbf..4c2942d 100644 --- a/src/imap_stream.rs +++ b/src/imap_stream.rs @@ -48,12 +48,6 @@ impl ImapStream { } pub async fn encode(&mut self, msg: Request) -> Result<(), io::Error> { - if self.closed { - return Err(io::Error::new( - io::ErrorKind::BrokenPipe, - "inner stream closed", - )); - } log::trace!( "encode: input: {:?}, {:?}", msg.0,