Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent edge case that creates extra event loop
`asyncio.get_event_loop_policy().get_event_loop() is asyncio.get_running_loop()` is not always true, as mentioned in python/cpython#96377 (comment). The AsyncioSelectorReactor runs in the second thread and uses the already initialised event loop in the main thread to run the crawler, so a single event loop will be running code from two threads.
- Loading branch information