Skip to content

Commit 5c71eb7

Browse files
authored
Apply suggestion from @graingert
1 parent bad71a2 commit 5c71eb7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

Lib/asyncio/proactor_events.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -605,13 +605,6 @@ def _loop_reading(self, fut=None):
605605
self._loop.call_soon(self._loop_reading)
606606
except OSError as exc:
607607
self._protocol.error_received(exc)
608-
if not self._closing and not self._conn_lost:
609-
# Some errors are transient and recoverable, e.g. a
610-
# ConnectionResetError raised synchronously by WSARecvFrom()
611-
# from a stale ICMP port-unreachable notification on a UDP
612-
# socket. Re-arm the read loop instead of leaving it dead
613-
# (gh-127057).
614-
self._loop.call_soon(self._loop_reading)
615608
except exceptions.CancelledError:
616609
if not self._closing:
617610
raise

0 commit comments

Comments
 (0)