Skip to content

Commit fd1b314

Browse files
authored
[3.11] remove redundant call to attach_loop in watcher (GH-110847) (#110870)
(cherry picked from commit 5965891)
1 parent 5c55f50 commit fd1b314

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
@@ -1443,8 +1443,6 @@ def _init_watcher(self):
14431443
with events._lock:
14441444
if self._watcher is None: # pragma: no branch
14451445
self._watcher = ThreadedChildWatcher()
1446-
if threading.current_thread() is threading.main_thread():
1447-
self._watcher.attach_loop(self._local._loop)
14481446

14491447
def set_event_loop(self, loop):
14501448
"""Set the event loop.

0 commit comments

Comments
 (0)