xmpp: disconnect method on Agent
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
a15a028383
commit
28df82c7bd
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ pub struct Agent {
|
|||
}
|
||||
|
||||
impl Agent {
|
||||
pub async fn disconnect(&mut self) -> Result<(), Error> {
|
||||
self.client.send_end().await
|
||||
}
|
||||
|
||||
pub async fn join_room(
|
||||
&mut self,
|
||||
room: BareJid,
|
||||
|
|
Loading…
Reference in a new issue