Skip to content

Comments

fix(tasks): fix off-by-one in post-reserve guard#335

Merged
randomm merged 1 commit intodevfrom
fix/issue-331-off-by-one
Feb 23, 2026
Merged

fix(tasks): fix off-by-one in post-reserve guard#335
randomm merged 1 commit intodevfrom
fix/issue-331-off-by-one

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 23, 2026

Fixes #331

Change post-reserve guard from > to >= to be consistent with the pre-check on line 85. Without this, a count of exactly MAX would pass the guard after reservation.

@randomm randomm merged commit 1558aa7 into dev Feb 23, 2026
1 check passed
@randomm randomm deleted the fix/issue-331-off-by-one branch February 23, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tasks): off-by-one in tryIncrementSessionCount post-reserve guard

1 participant