mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-06 22:10:14 -03:00
Refactor _create_session() to make-before-break: snapshot old session, assign new one first, then close old. Previously, concurrent download retries called _create_session() without the session lock (violating its docstring contract) and closed the old session while other coroutines held active references — causing aiohttp to raise "NoneType has no attribute connect" when dereferencing the torn-down connector. Also wrap the two _create_session() calls in the integrity-retry and network-retry paths with self._session_lock to match the locking discipline used by the session property and refresh_session().