Skip to content

Commit

Permalink
Remove unneeded assignment in BaseConnector._release (#9815)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Nov 11, 2024
1 parent 26f096d commit 49dd714
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 @@ -695,10 +695,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()
# TODO: Remove once fixed: https://bugs.python.org/issue39951
Expand Down

0 comments on commit 49dd714

Please sign in to comment.