Skip to content

Fix listeners leak in cmd.js#155

Closed
janm6k wants to merge 1 commit intobrowserify:masterfrom
janm6k:cmd-fix-listeners-leak
Closed

Fix listeners leak in cmd.js#155
janm6k wants to merge 1 commit intobrowserify:masterfrom
janm6k:cmd-fix-listeners-leak

Conversation

@janm6k
Copy link
Copy Markdown

@janm6k janm6k commented Mar 16, 2015

Each call of bundle function registered new listeners to get bytes and time, and it never removed them.

Each call of `bundle` function registered new listeners,
while keeping the old one registered.
@zertosh
Copy link
Copy Markdown
Member

zertosh commented Mar 23, 2015

Thanks @janm6k, but it'll still leak if there is an error since in that case bytes and time won't fire. Mind adding a fix for that too? 😄

@zertosh
Copy link
Copy Markdown
Member

zertosh commented Mar 25, 2015

This was fixed in #167. Thanks for the contribution though!

@zertosh zertosh closed this Mar 25, 2015
@janm6k
Copy link
Copy Markdown
Author

janm6k commented Mar 26, 2015

Yup, your solution looks better. Thanks for fixing it!

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