Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ConcurrentModificationException in GenericWebSocketClient. #12654

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

asvitkine
Copy link
Contributor

Using a synchronized collection is not sufficient to prevent getting a ConcurrentModificationException due to the collection being modified on another thread. Instead, we need to make iteration and collection mutation be mutually exclusive, which this now does.

Fixes: #12652

Notes to Reviewer

Using a synchronized collection is not sufficient to prevent getting a ConcurrentModificationException due to the collection being modified on another thread. Instead, we need to make iteration and collection mutation be mutually exclusive, which this now does.
@asvitkine asvitkine merged commit 70c3294 into triplea-game:master Jun 16, 2024
1 check 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.

ConcurrentModificationException in GenericWebSocketClient
1 participant