aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-04-24 11:13:29 -0700
committerGravatar MarkKoz <[email protected]>2020-04-24 11:13:29 -0700
commit5e477bab4572a7d07780d3e0d2cd5fa3ceb4a3b8 (patch)
treebd6b097bbfc123e019d6b42da2a2ab73801bd40c
parentUse 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.py2
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."""