diff --git a/src/xmpp_codec.rs b/src/xmpp_codec.rs index 17894b3..482cd78 100644 --- a/src/xmpp_codec.rs +++ b/src/xmpp_codec.rs @@ -317,8 +317,10 @@ impl Encoder for XMPPCodec { }) .map_err(to_io_err) } - // TODO: Implement all - _ => Ok(()), + Packet::StreamEnd => { + write!(dst, "\n") + .map_err(to_io_err) + } } } }