fix: not async .close() for aiohttp.ClientResponse

This commit is contained in:
uburuntu 2021-07-28 19:33:57 +03:00
parent ba251d21df
commit 2b73cdbbc4
No known key found for this signature in database
GPG key ID: 59E643252F903BE1

View file

@ -182,7 +182,7 @@ class _WebPipe:
async def close(self):
if self._response and not self._response.closed:
await self._response.close()
self._response.close()
if self._session and not self._session.closed:
await self._session.close()
if self._lock.locked():