Browse Source

Fix 429's not being accounted for in ratelimit updates

pull/1923/head
quin lynch 3 years ago
parent
commit
169010e32a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Net/Queue/RequestQueueBucket.cs

+ 1
- 1
src/Discord.Net.Rest/Net/Queue/RequestQueueBucket.cs View File

@@ -355,7 +355,7 @@ namespace Discord.Net.Queue
if (info.Limit.HasValue && WindowCount != info.Limit.Value)
{
WindowCount = info.Limit.Value;
_semaphore = info.Remaining.Value;
_semaphore = is429 ? 0 : info.Remaining.Value;
#if DEBUG_LIMITS
Debug.WriteLine($"[{id}] Upgraded Semaphore to {info.Remaining.Value}/{WindowCount}");
#endif


Loading…
Cancel
Save