Closed Vankka closed 2 years ago
If at JDA's shutdown there is a rate limit bucket with 1 request or more and one with 0 requests, the rate limiter will never shut down.
Relevant code, backoff won't be called for a empty bucket, so it won't get removed, and the requester won't get shutdown if there is a bucket.
Clearing buckets with 0 requests at #stop should solve this
#stop
The rate limiter should shut down
Reproduction steps
Demo application
n/a
Fixed in 5.0.0-alpha.10
General Troubleshooting
Bug Report
If at JDA's shutdown there is a rate limit bucket with 1 request or more and one with 0 requests, the rate limiter will never shut down.
Relevant code, backoff won't be called for a empty bucket, so it won't get removed, and the requester won't get shutdown if there is a bucket.
Clearing buckets with 0 requests at
#stop
should solve thisExpected Behavior
The rate limiter should shut down
Code Example or Reproduction Steps
Reproduction steps
Demo application
Code for JDABuilder or DefaultShardManagerBuilder Used
n/a
Exception or Error
n/a