Unset DDP._CurrentInvocation with undefined

Do this to avoid getting different results when DDP._CurrentInvocation
is not set.
This commit is contained in:
Simon Fridlund
2017-05-07 23:30:15 +02:00
parent 3ccfb7d1ea
commit b01899bbba

View File

@@ -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 = {};