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

ChangeListeners get the same model change #3647

Closed
litvinovg opened this issue Feb 17, 2022 · 1 comment
Closed

ChangeListeners get the same model change #3647

litvinovg opened this issue Feb 17, 2022 · 1 comment

Comments

@litvinovg
Copy link
Collaborator

Describe the bug
ChangeListener's receive the same modelChanges, which is not thread-safe and causes difficulties while working with serialized model.

To Reproduce
Steps to reproduce the behavior:

  1. Create two ChangeListeners
  2. Use getSerializedModel in both listeners to get serialized model changes
  3. See that only the first one recieves model changes as the InputStream is read by first one.

Expected behavior
The ChangeListener should receive model changes that are not affected by other ModelChangeListener actions.
Both ChangeListeners should receive serialized model changes.

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

No branches or pull requests

3 participants