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

Keep a reference to the correct consumer/observer array in _send (resolves #366). #367

Merged
merged 1 commit into from
Sep 7, 2015

Conversation

vqvu
Copy link
Collaborator

@vqvu vqvu commented Sep 7, 2015

We iterate through the _consumers and _observers arrays in _send, but the the arrays may be modified during iteration, so we need to keep a copy of the original reference around.

@vqvu
Copy link
Collaborator Author

vqvu commented Sep 7, 2015

Ref #366.

@vqvu
Copy link
Collaborator Author

vqvu commented Sep 7, 2015

@jgrund Looks like we did our work in parallel. This is basically the same fix you had but with tests that will work when I merge into 3.0.0.

vqvu added a commit that referenced this pull request Sep 7, 2015
Keep a reference to the correct consumer/observer array in _send (resolves  #366).
@vqvu vqvu merged commit 02e4270 into caolan:master Sep 7, 2015
@vqvu vqvu deleted the consume-mutates-consumers branch November 18, 2015 05:53
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.

1 participant