add XMPPStream.send_stanza() convenience method

This commit is contained in:
Astro 2018-08-02 00:19:06 +02:00
commit 71e2b1c84f
4 changed files with 14 additions and 8 deletions

View file

@ -76,7 +76,7 @@ impl<S: AsyncWrite> ClientAuth<S> {
.append(content.to_base64(base64::STANDARD))
.build();
let send = stream.send(Packet::Stanza(nonza));
let send = stream.send_stanza(nonza);
self.state = ClientAuthState::WaitSend(send);
}