fix unclosed http
This commit is contained in:
parent
7df9969814
commit
2010bb1275
@ -16,6 +16,7 @@ class WebHookDataForward(OneLoopAsyncTask):
|
|||||||
res = await self._http.post(self._webhook, data=self._data, headers=HEADERS)
|
res = await self._http.post(self._webhook, data=self._data, headers=HEADERS)
|
||||||
await res.read()
|
await res.read()
|
||||||
res.close()
|
res.close()
|
||||||
|
await self._http.close()
|
||||||
|
|
||||||
async def setup(self) -> bool:
|
async def setup(self) -> bool:
|
||||||
self._http = aiohttp.ClientSession()
|
self._http = aiohttp.ClientSession()
|
||||||
|
Loading…
Reference in New Issue
Block a user