diff --git a/discord/client.py b/discord/client.py index 8c64fe447b..dcbcd05959 100644 --- a/discord/client.py +++ b/discord/client.py @@ -821,8 +821,8 @@ async def runner(): if not self.is_closed(): self.loop.run_until_complete(self.close()) - _log.info("Cleaning up tasks.") - _cleanup_loop(self.loop) + _log.info("Cleaning up tasks.") + _cleanup_loop(self.loop) # properties