diff --git a/scrapy_playwright/_utils.py b/scrapy_playwright/_utils.py index 2659828..fa6902b 100644 --- a/scrapy_playwright/_utils.py +++ b/scrapy_playwright/_utils.py @@ -142,7 +142,6 @@ def start(cls, caller_id: int) -> None: if platform.system() == "Windows": policy = asyncio.WindowsProactorEventLoopPolicy() # type: ignore[attr-defined] cls._loop = policy.new_event_loop() - asyncio.set_event_loop(cls._loop) if not getattr(cls, "_thread", None): cls._thread = threading.Thread(target=cls._loop.run_forever, daemon=True)