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

Add a second parameter to the termination callback #1

Merged
merged 2 commits into from
Aug 29, 2016

Conversation

javi-jamaa
Copy link
Member

Add a second parameter to the terminate callback to indicate if the server terminates by timeout

@@ -24,7 +23,7 @@ enableTerminate(server).listen(PORT));


// When you want to stop your server...
server.terminate(function() {
server.terminate(function(err,terminatedByTimeout) {
Copy link
Member

Choose a reason for hiding this comment

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

Missing whitespace err, terminatedByTimeout

@JoseAntonioRodriguez
Copy link
Member

LGTM

@JoseAntonioRodriguez JoseAntonioRodriguez merged commit 637b7a6 into master Aug 29, 2016
@JoseAntonioRodriguez JoseAntonioRodriguez deleted the feat/teminate-by-timeout branch August 29, 2016 10:16
JoseAntonioRodriguez pushed a commit that referenced this pull request Sep 1, 2016
…has terminated by timeout (#1)

* Add a second parameter to the callback indicating if the process finished by timeout

* [[TEST]] Check that the new terminatedByTimeout parameter is false when the server is not terminated by timeout
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.

None yet

3 participants