mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Unset DDP._CurrentInvocation with undefined
Do this to avoid getting different results when DDP._CurrentInvocation is not set.
This commit is contained in:
@@ -816,7 +816,7 @@ _.extend(Session.prototype, {
|
||||
// calling server-side Meteor methods, their this.connection property is
|
||||
// set when publish function is restarted here, but the property should
|
||||
// not be set.
|
||||
DDP._CurrentInvocation.withValue(null, function () {
|
||||
DDP._CurrentInvocation.withValue(undefined, function () {
|
||||
// Save the old named subs, and reset to having no subscriptions.
|
||||
var oldNamedSubs = self._namedSubs;
|
||||
self._namedSubs = {};
|
||||
|
||||
Reference in New Issue
Block a user