diff options
author | 2020-04-24 11:13:29 -0700 | |
---|---|---|
committer | 2020-04-24 11:13:29 -0700 | |
commit | 5e477bab4572a7d07780d3e0d2cd5fa3ceb4a3b8 (patch) | |
tree | bd6b097bbfc123e019d6b42da2a2ab73801bd40c | |
parent | Use selector event loop on Windows (diff) |
Fix awaiting non-coroutine when closing the statsd transport
`BaseTransport.close()` is not a coroutine and therefore should not
be awaited.
-rw-r--r-- | bot/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py index 6dd5ba896..027d8d2a3 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -75,7 +75,7 @@ class Bot(commands.Bot): await self._resolver.close() if self.stats._transport: - await self.stats._transport.close() + self.stats._transport.close() async def login(self, *args, **kwargs) -> None: """Re-create the connector and set up sessions before logging into Discord.""" |