Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: use proactor event loop on Windows (#1178)

NTFSvolume7ed62b5bde6e
diff --git a/cyberdrop_dl/director.py b/cyberdrop_dl/director.py
index f447909fa..7a9ad2977 100644
--- a/cyberdrop_dl/director.py
+++ b/cyberdrop_dl/director.py
@@ -343,7 +343,7 @@ class Director:
def __init__(self, args: tuple[str, ...] | None = None) -> None:
if os.name == "nt":
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
+ asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
self.manager = _setup_manager(args)