Lazily bubbling the XMPP event up to the Disconnected event.
This commit is contained in:
parent
8f18cf2208
commit
ba48f6de46
2 changed files with 6 additions and 6 deletions
|
|
@ -39,8 +39,8 @@ async fn main() -> Result<(), Option<()>> {
|
|||
Event::Online => {
|
||||
println!("Online.");
|
||||
}
|
||||
Event::Disconnected => {
|
||||
println!("Disconnected");
|
||||
Event::Disconnected(e) => {
|
||||
println!("Disconnected because of {}.", e);
|
||||
return Err(None);
|
||||
}
|
||||
Event::ContactAdded(contact) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue