Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
515 stars 197 forks source link

Fix memory leak #364

Closed zodern closed 1 year ago

zodern commented 5 years ago

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.