Skip to content

Commit

Permalink
Fix stream access exception when ratelimited (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinchs authored Feb 16, 2022
1 parent 92445fb commit a1cfa41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Discord.Net.Rest/Net/Queue/RequestQueueBucket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public async Task<Stream> SendAsync(RestRequest request)
switch (response.StatusCode)
{
case (HttpStatusCode)429:
info.ReadRatelimitPayload(response.Stream);
if (info.IsGlobal)
{
#if DEBUG_LIMITS
Expand Down

0 comments on commit a1cfa41

Please sign in to comment.