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 memory leak #364

Merged

Conversation

zodern
Copy link
Contributor

@zodern zodern commented Mar 11, 2019

Adds a listener to the error event to fix a memory leak. I kept the current behavior of not showing errors in feedback.

If feedback has an error and there is no listener for the error event, the error is thrown which happens before the clean up code. Feedback isn't configured correctly (#331) so this happens every 5 seconds.

When there are no listeners to the error event, it would throw the error before it has a chance to remove all references to the promise. It would then continue adding a rejection handler every 5 seconds to the same promise.
@zodern zodern changed the title Add listener to feedback error event Fix memory leak Mar 11, 2019
@StorytellerCZ StorytellerCZ merged commit ec075c9 into Meteor-Community-Packages:master Sep 23, 2023
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.

2 participants