mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-23 13:20:49 +08:00
windows async fix
https://github.com/ltdrdata/ComfyUI-Manager/issues/339
This commit is contained in:
parent
29cb390f7b
commit
a7f4ce1582
@ -456,3 +456,12 @@ if os.path.exists(script_list_path):
|
|||||||
|
|
||||||
del processed_install
|
del processed_install
|
||||||
del pip_list
|
del pip_list
|
||||||
|
|
||||||
|
if platform.system() == 'Windows':
|
||||||
|
try:
|
||||||
|
import asyncio
|
||||||
|
import asyncio.windows_events
|
||||||
|
asyncio.set_event_loop_policy(asyncio.windows_events.WindowsSelectorEventLoopPolicy())
|
||||||
|
print(f"[ComfyUI-Manager] Windows event loop policy mode enabled")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[ComfyUI-Manager] WARN: Windows initialization fail: {e}")
|
||||||
Loading…
Reference in New Issue
Block a user