aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorToby Harradine <[email protected]>2019-02-05 09:37:28 +1100
committerRapptz <[email protected]>2019-02-06 01:52:56 -0500
commit85862510897ea655f3cad3e04e673b81d7011b09 (patch)
tree3b2372d9f1c785889c0041f4ddcf7418340af9e8 /discord/http.py
parentFix typo in API documentation. (diff)
downloaddiscord.py-85862510897ea655f3cad3e04e673b81d7011b09.tar.xz
discord.py-85862510897ea655f3cad3e04e673b81d7011b09.zip
Use non-deprecated method of acquiring lock
Diffstat (limited to 'discord/http.py')
-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: