Skip to content

Commit

Permalink
Explicitly unset session data on Blizzard end().
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Oct 9, 2012
1 parent e8f514e commit 5d2d5be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blizzard/session.js
Expand Up @@ -169,6 +169,10 @@ BlizzardSession.prototype.end = function () {
this.removeAllListeners("rpc.**");
this.socket.end();
this.socket.destroySoon();
this.requestCallbacks = null;
this.requestMethods = null;
this.streams = null;
this.output = null;
};

/**
Expand Down

0 comments on commit 5d2d5be

Please sign in to comment.