tasks.join_next => join_all()

This commit is contained in:
2026-06-10 18:26:55 +00:00
parent 3d751ae6c6
commit 71ebfdd276
+1 -5
View File
@@ -80,11 +80,7 @@ impl Bot {
// When all webhook tasks have completed, we can safely exit // When all webhook tasks have completed, we can safely exit
// properly before returning // properly before returning
while let Some(res) = tasks.join_next().await { tasks.join_all().await;
if let Err(e) = res {
error!("Task panicked: {e}");
}
}
info!("Bot shutting down, channel closed"); info!("Bot shutting down, channel closed");
Ok(()) Ok(())