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

Bugfixes for server.close() and server.destroy() #901

Merged
merged 2 commits into from Sep 13, 2016
Merged

Bugfixes for server.close() and server.destroy() #901

merged 2 commits into from Sep 13, 2016

Conversation

@dcposch
Copy link
Contributor

dcposch commented Sep 4, 2016

@@ -37,6 +37,7 @@ function Server (torrent, opts) {
})

// Only call `server.close` if user has not called it already
if (!cb) cb = function () {}

This comment has been minimized.

Copy link
@feross

feross Sep 13, 2016

Member

It's best to set all defaults at the top of the function instead of in the body.

@feross

This comment has been minimized.

Copy link
Member

feross commented Sep 13, 2016

LGTM -- thanks for catching this.

@feross feross merged commit 9775540 into master Sep 13, 2016
5 checks passed
5 checks passed
Node Security No known vulnerabilities found
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@feross feross deleted the dc/fix branch Sep 13, 2016
@feross

This comment has been minimized.

Copy link
Member

feross commented Sep 13, 2016

0.96.5

@lock

This comment has been minimized.

Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.