mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Only call async setup if the loop sentinel hasn't been changed
This commit is contained in:
@ -537,7 +537,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()
|
||||
|
||||
data = await self.http.static_login(token.strip())
|
||||
self._connection.user = ClientUser(state=self._connection, data=data)
|
||||
|
Reference in New Issue
Block a user