Fix stream access exception when ratelimited (#2117)

This commit is contained in:
Quin Lynch
2022-02-16 11:13:36 -04:00
committed by GitHub
parent 92445fb247
commit a1cfa41953

View File

@@ -75,7 +75,6 @@ namespace Discord.Net.Queue
switch (response.StatusCode) switch (response.StatusCode)
{ {
case (HttpStatusCode)429: case (HttpStatusCode)429:
info.ReadRatelimitPayload(response.Stream);
if (info.IsGlobal) if (info.IsGlobal)
{ {
#if DEBUG_LIMITS #if DEBUG_LIMITS