diff --git a/xmpp/examples/hello_bot.rs b/xmpp/examples/hello_bot.rs index 3f67be08ec21d423de5b9d91f2c473fd8511a055..eaaf16e9a429bf3154c9ea287bd0cdf38af4cfab 100644 --- a/xmpp/examples/hello_bot.rs +++ b/xmpp/examples/hello_bot.rs @@ -79,7 +79,7 @@ async fn main() -> Result<(), Option<()>> { tokio::select! { events = client.wait_for_events() => { for event in events { - let _ = handle_events(&mut client, event, &rooms); + let _ = handle_events(&mut client, event, &rooms).await; } }, _ = ctrl_c() => {