From d414806fa2d093f24e192e3539c75a09a57d78bb Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 22 Feb 2018 20:08:49 -0500 Subject: [PATCH] Close aiohttp ClientSession (#1340) --- redbot/cogs/image/image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redbot/cogs/image/image.py b/redbot/cogs/image/image.py index dae3b552d..2599465ba 100644 --- a/redbot/cogs/image/image.py +++ b/redbot/cogs/image/image.py @@ -24,6 +24,9 @@ class Image: self.session = aiohttp.ClientSession() self.imgur_base_url = "https://api.imgur.com/3/" + def __unload(self): + self.session.close() + @commands.group(name="imgur") @commands.guild_only() async def _imgur(self, ctx):