fix unclosed http

This commit is contained in:
andrew (from workstation) 2019-11-06 16:02:09 +01:00
parent 7df9969814
commit 2010bb1275

View File

@ -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()