Skip to content

Commit

Permalink
Use the default event loop on Windows (#7677)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Nov 8, 2023
1 parent e8f2ad6 commit ebabda8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/tribler/core/start_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ def run_tribler_core_session(api_port: Optional[int], api_key: str,
log_dir = config.general.get_path_as_absolute('log_dir', config.state_dir)
trace_logger = check_and_enable_code_tracing('core', log_dir)

if sys.platform.startswith('win'):
# TODO for the moment being, we use the SelectorEventLoop on Windows, since with the ProactorEventLoop, ipv8
# peer discovery becomes unstable. Also see issue #5485.
asyncio.set_event_loop(asyncio.SelectorEventLoop())

loop = asyncio.get_event_loop()
exception_handler = default_core_exception_handler
loop.set_exception_handler(exception_handler.unhandled_error_observer)
Expand Down

0 comments on commit ebabda8

Please sign in to comment.