Browse Source

Only call async setup if the loop sentinel hasn't been changed

pull/7906/head
Rapptz 3 years ago
parent
commit
987235d564
  1. 1
      discord/client.py

1
discord/client.py

@ -537,6 +537,7 @@ class Client:
_log.info('logging in using static token')
if self.loop is _loop:
await self._async_setup_hook()
data = await self.http.static_login(token.strip())

Loading…
Cancel
Save