Skip to content

Commit 0c56c05

Browse files
[3.12] remove redundant call to attach_loop in watcher (GH-110847) (#110867)
(cherry picked from commit 5965891) Co-authored-by: Thomas Grainger <[email protected]>
1 parent 9786959 commit 0c56c05

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/asyncio/unix_events.py

-2
Original file line numberDiff line numberDiff line change
@@ -1461,8 +1461,6 @@ def _init_watcher(self):
14611461
self._watcher = PidfdChildWatcher()
14621462
else:
14631463
self._watcher = ThreadedChildWatcher()
1464-
if threading.current_thread() is threading.main_thread():
1465-
self._watcher.attach_loop(self._local._loop)
14661464

14671465
def set_event_loop(self, loop):
14681466
"""Set the event loop.

0 commit comments

Comments
 (0)