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

wait to notify() or updateInterest() at end of GC #1044

Merged
merged 1 commit into from Feb 14, 2017
Merged

wait to notify() or updateInterest() at end of GC #1044

merged 1 commit into from Feb 14, 2017

Conversation

@feross
Copy link
Member

feross commented Feb 14, 2017

To prevent it from possibly being called twice, which will do extra work

To prevent it from possibly being called twice, which will do extra work
@@ -893,7 +893,7 @@ Torrent.prototype.deselect = function (start, end, priority) {
for (var i = 0; i < self._selections.length; ++i) {
var s = self._selections[i]
if (s.from === start && s.to === end && s.priority === priority) {
self._selections.splice(i--, 1)
self._selections.splice(i, 1)

This comment has been minimized.

Copy link
@feross

feross Feb 14, 2017

Author Member

the -- is not needed to compensate for the splice(), since we call break right afterwards.

@feross feross merged commit bda9351 into master Feb 14, 2017
4 of 5 checks passed
4 of 5 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
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/push The Travis CI build passed
Details
@feross feross deleted the feross/fix branch Feb 14, 2017
@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

1 participant
You can’t perform that action at this time.