imp
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/http.py
|
@ -453,7 +453,7 @@ class Ratelimit: |
|
|
# for up to 3 seconds instead of using aiohttp's default 5 min timeout. |
|
|
# for up to 3 seconds instead of using aiohttp's default 5 min timeout. |
|
|
if not self.reset_at and (not self._last_request or self.http.loop.time() - self._last_request < 3): |
|
|
if not self.reset_at and (not self._last_request or self.http.loop.time() - self._last_request < 3): |
|
|
try: |
|
|
try: |
|
|
self._future = asyncio.Future() |
|
|
self._future = self.http.loop.create_future() |
|
|
await asyncio.wait_for(self._future, 3) |
|
|
await asyncio.wait_for(self._future, 3) |
|
|
except asyncio.TimeoutError: |
|
|
except asyncio.TimeoutError: |
|
|
fmt = 'Initial request for rate limit bucket (%s) never finished. Skipping.' |
|
|
fmt = 'Initial request for rate limit bucket (%s) never finished. Skipping.' |
|
|