Skip to content

Commit 71aa849

Browse files
[PR #9815/49dd7146 backport][3.11] Remove unneeded assignment in BaseConnector._release (#9820)
Co-authored-by: J. Nick Koston <[email protected]>
1 parent 0ca67bb commit 71aa849

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

aiohttp/connector.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,7 @@ def _release(
702702

703703
self._release_acquired(key, protocol)
704704

705-
if self._force_close:
706-
should_close = True
707-
708-
if should_close or protocol.should_close:
705+
if self._force_close or should_close or protocol.should_close:
709706
transport = protocol.transport
710707
protocol.close()
711708

0 commit comments

Comments
 (0)