Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed a bug where queue processing could cause a stack overflow. #117

Closed
wants to merge 1 commit into from
Closed

Conversation

nullobject
Copy link

Hi there,

I fixed a bug in the async queue processing. The recursion in the #process method has the potential to cause a stack overflow if the queue is large. Using #nextTick resolves this issue.

Thanks for the great library.

* Use #nextTick instead of recursively calling #process.
@MauriceSchoenmakers
Copy link

had same issue please pull. (note: also if using push with async callback).

@caolan
Copy link
Owner

caolan commented Jan 31, 2013

Now fixed elsewhere.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants