xmpp_codec: encode </stream:stream>

This commit is contained in:
Astro 2019-01-29 01:51:22 +01:00
parent 39346506c8
commit 1e7031aa31

View file

@ -317,8 +317,10 @@ impl Encoder for XMPPCodec {
})
.map_err(to_io_err)
}
// TODO: Implement all
_ => Ok(()),
Packet::StreamEnd => {
write!(dst, "</stream:stream>\n")
.map_err(to_io_err)
}
}
}
}