xmpp: disconnect method on Agent

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-12-27 00:50:23 +01:00
parent a15a028383
commit 28df82c7bd

View file

@ -198,6 +198,10 @@ pub struct Agent {
} }
impl Agent { impl Agent {
pub async fn disconnect(&mut self) -> Result<(), Error> {
self.client.send_end().await
}
pub async fn join_room( pub async fn join_room(
&mut self, &mut self,
room: BareJid, room: BareJid,