diff --git a/tasks/webhook.py b/tasks/webhook.py index 2bca2c9..97bbeaa 100644 --- a/tasks/webhook.py +++ b/tasks/webhook.py @@ -16,6 +16,7 @@ class WebHookDataForward(OneLoopAsyncTask): res = await self._http.post(self._webhook, data=self._data, headers=HEADERS) await res.read() res.close() + await self._http.close() async def setup(self) -> bool: self._http = aiohttp.ClientSession()