Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure writer cleaned up before _release_connection
Browse files Browse the repository at this point in the history
bdraco committed Nov 8, 2023
1 parent 6e1a017 commit 885afdb
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
@@ -916,10 +916,12 @@ def _response_eof(self) -> None:
):
return

self._cleanup_writer()
self._release_connection()
else:
self._cleanup_writer()

Check warning on line 922 in aiohttp/client_reqrep.py

Codecov / codecov/patch

aiohttp/client_reqrep.py#L922

Added line #L922 was not covered by tests

self._closed = True
self._cleanup_writer()

@property
def closed(self) -> bool:

0 comments on commit 885afdb

Please sign in to comment.