diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index d1f2ee3ede6b12..3a502844d274ec 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -321,6 +321,7 @@ def run_forever_setup(self): return super().run_forever_setup() def run_forever_cleanup(self, orig_state): + super().run_forever_cleanup() if self._self_reading_future is not None: ov = self._self_reading_future._ov self._self_reading_future.cancel()