Permalink
Browse files

Don't call "stop" on already-stopped observe handles, when unsubbing …

…after a

setUserId.
  • Loading branch information...
glasser committed Nov 9, 2012
1 parent ea4d04c commit a87c6580d5c206f4efbb91b268b8c9584e7737f7
Showing with 1 addition and 0 deletions.
  1. +1 −0 packages/livedata/livedata_server.js
@@ -616,6 +616,7 @@ _.extend(Meteor._LivedataSubscription.prototype, {
// tell listeners, so they can clean up
for (var i = 0; i < self.stop_callbacks.length; i++)
(self.stop_callbacks[i])();
+ self.stop_callbacks = [];
// remove our data from the client (possibly unshadowing data from
// lower priority subscriptions)

0 comments on commit a87c658

Please sign in to comment.