Files
iptvnator/libs/portal
4grayandClaude Fable 5 bdb4e555d6 fix(stalker): close the abort window around the async prehash, and repair logins
Two review findings on the cancellation work:

- `getProfile()` and `performHandshake()` await `generatePrehash()`, so an
  abort landing during that await left the caller's pre-check stale and the
  request went out anyway — precisely the avoidable case where an abandoned
  candidate adopts the MAC's token behind a healthy one. The check now sits
  immediately before each dispatch, inside the API methods.
- Lazy repair called `discover()` without the playlist's stored credentials,
  so a login/password portal answered status 2 during confirmation and could
  never be repaired despite holding a working login.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 18:41:55 +02:00
..