Skip to content

Commit

Permalink
2.17.1 - Don't call destroy if the pubsub layer has already been rele…
Browse files Browse the repository at this point in the history
…ased.
  • Loading branch information
JohanvdWest committed Feb 8, 2017
1 parent 9f08864 commit a0865c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@

function handleLoginCallback(e) {
if (e) {
if (_this.pubsub.destroy) _this.pubsub.destroy();
if (_this.pubsub && _this.pubsub.destroy) _this.pubsub.destroy();
_this.pubsub = null;
}
callback(e);
Expand Down

0 comments on commit a0865c8

Please sign in to comment.