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

Null out handle in DataService.unwatch #171

Conversation

benjaminapetersen
Copy link
Contributor

Per this comment & after doing the null manually in a few places, thinking we can update DataService with this little tweak.

@spadgett

@@ -772,6 +772,7 @@ DataService.prototype.createStream = function(resource, name, context, opts, isR
this._watchInFlight(key, false);
this._watchOptions(key, null);
}
handle = null;
Copy link
Member

Choose a reason for hiding this comment

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

Hey @benjaminapetersen I don't think it makes much difference here since handle is local to the function, so it goes out of scope immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

aye let me check that.

@spadgett
Copy link
Member

Closing as I don't think this is necessary.

@spadgett spadgett closed this Oct 16, 2017
@benjaminapetersen benjaminapetersen deleted the bpeterse/dataservice-unwatch-null-handle branch October 16, 2017 13:53
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

2 participants