Skip to content

ensure mode is always set to INITIAL during startTokenization#119

Merged
hsivonen merged 1 commit into
validator:masterfrom
keithamus:ensure-mode-is-always-set-to-initial-during-starttokenization
May 13, 2026
Merged

ensure mode is always set to INITIAL during startTokenization#119
hsivonen merged 1 commit into
validator:masterfrom
keithamus:ensure-mode-is-always-set-to-initial-during-starttokenization

Conversation

@keithamus
Copy link
Copy Markdown
Contributor

While currently, all branches set a mode, this is both subtle and fragile; if a branch ends up not setting mode it will never be reset. This means subsequent calls to start tokenisation can end up with a different initial mode.

This change simply resets mode to INITIAL on every startTokenization() call, ensuring that if we ever miss it, it will be reset.

While currently, all branches set a mode, this is both subtle and fragile; if a
branch ends up not setting mode it will never be reset. This means
subsequent calls to start tokenisation can end up with a different
initial mode.

This change simply resets mode to INITIAL on every startTokenization() call,
ensuring that if we ever miss it, it will be reset.
Copy link
Copy Markdown
Member

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hsivonen hsivonen merged commit bd7f0f7 into validator:master May 13, 2026
12 checks passed
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.

2 participants