Skip to content

Commit

Permalink
[PR #9815/49dd7146 backport][3.11] Remove unneeded assignment in Base…
Browse files Browse the repository at this point in the history
…Connector._release (#9820)

Co-authored-by: J. Nick Koston <nick@koston.org>
  • Loading branch information
patchback[bot] and bdraco authored Nov 11, 2024
1 parent 0ca67bb commit 71aa849
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,7 @@ def _release(

self._release_acquired(key, protocol)

if self._force_close:
should_close = True

if should_close or protocol.should_close:
if self._force_close or should_close or protocol.should_close:
transport = protocol.transport
protocol.close()

Expand Down

0 comments on commit 71aa849

Please sign in to comment.