Browse Source

Use non-deprecated method of acquiring lock

pull/1887/head
Toby Harradine 6 years ago
committed by Rapptz
parent
commit
8586251089
  1. 2
      discord/http.py

2
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:

Loading…
Cancel
Save