Skip to content

147 invalidoperationexception collection was modified - #148

Merged
StephenHidem merged 2 commits into
masterfrom
147-invalidoperationexception-collection-was-modified
Aug 10, 2026
Merged

147 invalidoperationexception collection was modified#148
StephenHidem merged 2 commits into
masterfrom
147-invalidoperationexception-collection-was-modified

Conversation

@StephenHidem

Copy link
Copy Markdown
Owner

Close issue #147

Refactored AntCollection.cs and AntDeviceCollection.cs to use a CollectionLock when finding or creating devices. This guarantees thread-safe access and modification of the device collection, preventing race conditions during message dispatch.
Incremented Hosting to 2.0.12 and AntPlus to 7.0.3. Updated package release notes to mention improved thread safety in ANT device collection handling.
@StephenHidem StephenHidem linked an issue Aug 10, 2026 that may be closed by this pull request
@StephenHidem
StephenHidem merged commit aa3585b into master Aug 10, 2026
5 checks passed
@StephenHidem
StephenHidem deleted the 147-invalidoperationexception-collection-was-modified branch August 10, 2026 17:04
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.

InvalidOperationException: Collection was modified

1 participant