From 85862510897ea655f3cad3e04e673b81d7011b09 Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Tue, 5 Feb 2019 09:37:28 +1100 Subject: [PATCH] Use non-deprecated method of acquiring lock --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 5ed862d8d..75c02457c 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: