mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 01:56:16 -08:00
Lazy repair cached `outcome.token` and refreshed the watchdog, but dropped the cadence its own confirmation profile had just reported. The retried request then found the cached token, so no authentication path ever applied the profile outcome and a freshly repaired playlist kept pinging on the default until the token failed or the app restarted. `adoptDiscoveredSession()` is the entry point for "another layer already negotiated this session": it caches the token, applies the cadence and persists both, keyed to the REPAIRED configuration since the session belongs to the endpoint it was negotiated against. Also removes the contradictory watchdog contract from the same document — the portal-mode summary still said pings run every 25 s with 120 s deferred, while the lifecycle section below it documents the implemented profile-driven cadence. Applying the outcome moved into the session store (it already owns the persisted half), which keeps the facade under the 400-line limit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>