mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 14:39:26 +08:00
- Add `isSameSelector` using type-aware comparable checks to avoid unnecessary selector replacement. - Update `Manager.SetSelector` to: - serialize swaps with a dedicated selector mutex, - no-op when replacing with the same selector instance/type, - stop the previous selector when it implements `StoppableSelector`. - Protect `SessionCache.Stop()` with `sync.Once` and nil-check to make repeated/concurrent stops safe and idempotent. Closes: #5018