vionya / discord-rich-presence

A cross-platform Discord Rich Presence library written in Rust
MIT License
89 stars 16 forks source link

set_activity does not update the presence if the calling thread go to sleep immediately after calling set_activity #29

Closed ultimaweapon closed 8 months ago

ultimaweapon commented 8 months ago

It seems like the data is buffered because there is no flush after set_activity. Here is the code that demonstrate this problem: https://github.com/obhq/obliteration/pull/432

ultimaweapon commented 8 months ago

Found out it is because our application terminates too fast so it is not a bug of this library.