Commit 65fd810
committed
access-controller: clear backoff_until on grant-after-sync
Defensively reset `backoff_until` alongside `failed_attempts` in the
SyncComplete-allowed branch of AccessCore so the two counters stay in
lockstep on a successful grant-after-sync.
The state machine as written cannot currently reach SyncComplete-grant
with a future `backoff_until` (a sync-denial clears pending_recheck
via .take(), and re-arming pending_recheck requires a card outside the
backoff window), so this is not a fix for an observable bug — it's
hygiene against future refactors weakening that invariant.
Strengthens grant_after_sync_resets_failed_attempts to also assert
backoff_until == 0 after the sync-grant.1 parent 6512707 commit 65fd810
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
0 commit comments