Skip to content

Commit 5965891

Browse files
authored
remove redundant call to attach_loop in watcher (python#110847)
1 parent 4110cfe commit 5965891

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/asyncio/unix_events.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,8 +1465,6 @@ def _init_watcher(self):
14651465
self._watcher = PidfdChildWatcher()
14661466
else:
14671467
self._watcher = ThreadedChildWatcher()
1468-
if threading.current_thread() is threading.main_thread():
1469-
self._watcher.attach_loop(self._local._loop)
14701468

14711469
def set_event_loop(self, loop):
14721470
"""Set the event loop.

0 commit comments

Comments
 (0)