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

Do not erase error if callback is called sync #18

Merged
merged 1 commit into from
Jul 13, 2017
Merged

Do not erase error if callback is called sync #18

merged 1 commit into from
Jul 13, 2017

Conversation

mcollina
Copy link
Member

Fixes #17

@mcollina mcollina requested a review from delvedor July 13, 2017 08:06
boot.js Outdated
@@ -207,16 +205,19 @@ function callWithCbOrNextTick (func, cb, context) {
context = this._server
}

var err = this._error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should wrap this inside an if (this), as was done few lines above :)
Or, if not needed, remove the if (this) few lines above :P

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit 8a93166 into master Jul 13, 2017
@mcollina mcollina deleted the fix-17 branch July 13, 2017 09:14
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