From 2f7e059df4a91afb5fc686bc99e90f7baf8b1abd Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Mon, 25 Jul 2022 23:57:57 +0100 Subject: Remove explicit cleanup of the redis session (#111) --- botcore/_bot.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'botcore') diff --git a/botcore/_bot.py b/botcore/_bot.py index e3d9aac3..bb25c0b5 100644 --- a/botcore/_bot.py +++ b/botcore/_bot.py @@ -284,8 +284,5 @@ class BotBase(commands.Bot): if getattr(self.stats, "_transport", False): self.stats._transport.close() - if getattr(self, "redis_session", False): - await self.redis_session.close() - if self._statsd_timerhandle: self._statsd_timerhandle.cancel() -- cgit v1.2.3