Skip to content

Commit

Permalink
remove redundant call to attach_loop in watcher (python#110847)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Oct 14, 2023
1 parent 4110cfe commit 5965891
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/asyncio/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,8 +1465,6 @@ def _init_watcher(self):
self._watcher = PidfdChildWatcher()
else:
self._watcher = ThreadedChildWatcher()
if threading.current_thread() is threading.main_thread():
self._watcher.attach_loop(self._local._loop)

def set_event_loop(self, loop):
"""Set the event loop.
Expand Down

0 comments on commit 5965891

Please sign in to comment.