aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 5ed862d8..75c02457 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -148,7 +148,7 @@ class HTTPClient:
# wait until the global lock is complete
await self._global_over.wait()
- await lock
+ await lock.acquire()
with MaybeUnlock(lock) as maybe_lock:
for tries in range(5):
async with self._session.request(method, url, **kwargs) as r: