discord-sdk
discord-sdk copied to clipboard
IO handler shutdown hangs tasks
Describe the bug
Alright, I've figured it out! This bug specifically occurs when anything .awaits a Discord request, and the IO handler restarts for whatever reason. The awaits hang perpetually.
To Reproduce Steps to reproduce the behavior:
- Write some code which does the following:
- Connects to discord
- Sends a periodical request of some kind, I've been using activity updates.
- Make sure it logs when it does, or in some way shows that it's running
- Run it with Discord open
- Kill discord and reopen it
- Note how the logging suddenly pauses
Expected behavior For an error to be returned, or, ideally, the request to be transparently resent in some way.
Device: ArchLinux, kernel 6.1.19, rustc 1.66.0-nightly
I don't have time to work on this atm but I agree it's an issue. Would accept a PR to fix/improve this.