xmpp: handle SIGINT (^C) in hello_bot example

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2025-04-11 15:52:15 +02:00
commit da219d4fed
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 62 additions and 43 deletions

View file

@ -22,6 +22,8 @@ XXXX-YY-ZZ [ RELEASER <admin@localhost> ]
Event::RoomPrivateMessageCorrection signal XEP-0308 message corrections; they're
not checked how old the corrected entry is, which has security concerns (!496)
- Agent::new helper method.
- Handle SIGINT, SIGTERM and SIGKILL in hello_bot example to avoid leaving
hibernating resources around.
* Fixes:
- Use tokio::sync::RwLock not std::sync::RwLock (!432)
- Agent::wait_for_events now return Vec<Event> and sets inner tokio_xmpp Client