diff --git a/discord/http.py b/discord/http.py index e2b10212b..480d22706 100644 --- a/discord/http.py +++ b/discord/http.py @@ -502,8 +502,8 @@ class Ratelimit: async def release(self): if not self.one_shot: self.outgoing -= 1 - self._event.set() - self._event.clear() + if self._future and not self._future.done(): + self._future.set_result(None) async def __aenter__(self) -> Self: await self.acquire()