Browse Source

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

pull/10109/head
Rapptz 3 years ago
committed by dolfies
parent
commit
49cbf46c44
  1. 3
      discord/client.py

3
discord/client.py

@ -661,7 +661,8 @@ class Client:
_log.info('Logging in using static token.')
await self._async_setup_hook()
if self.loop is _loop:
await self._async_setup_hook()
state = self._connection
data = await state.http.static_login(token.strip())

Loading…
Cancel
Save