mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Only call async setup if the loop sentinel hasn't been changed
This commit is contained in:
parent
6113f856b6
commit
987235d564
@ -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…
x
Reference in New Issue
Block a user