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(android): Avoid ConcurrentModificationException on notifyListeners #5125

Merged
merged 2 commits into from Oct 13, 2021

Conversation

jcesarmobile
Copy link
Member

Despite we are not modifying the list, for some reason it causes ConcurrentModificationException, so change notifyListeners to iterate over a copy of the listeners list.

closes #4797

@Ionitron Ionitron added this to Needs review 🤔 in Capacitor Engineering ⚡️ Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

bug: ANR crash java.util.ConcurrentModificationException com.getcapacitor.Plugin.notifyListeners
2 participants