Skip to content

Commit 9afc04b

Browse files
authored
Apply suggestion from @graingert
1 parent f2afd28 commit 9afc04b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncio/proactor_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def _loop_reading(self, fut=None):
573573
self.max_size)
574574
except OSError as exc:
575575
self._protocol.error_received(exc)
576-
if not self._conn_lost:
576+
if not self._closing:
577577
# The error can be transient, e.g. a ConnectionResetError
578578
# from a stale ICMP port unreachable notification, so
579579
# reschedule the read loop instead of leaving it dead.

0 commit comments

Comments
 (0)