Skip to content

Commit

Permalink
Fix ClientResponse.close releasing the connection instead of closing
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 22, 2023
1 parent ccf74bb commit 89fd434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,9 @@ def close(self) -> None:
return

self._cleanup_writer()
self._release_connection()
if self._connection is not None:
self._connection.close()
self._connection = None

def release(self) -> Any:
if not self._released:
Expand Down

0 comments on commit 89fd434

Please sign in to comment.