Skip to content

Commit

Permalink
Workaround for race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 20, 2011
1 parent b0147f3 commit 191d68d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,10 @@ Transport.prototype.subscribe = function () {
*/

Transport.prototype.unsubscribe = function () {
if (this.subscribed) {
this.log.info('unsubscribing', this.id);
this.log.info('unsubscribing', this.id);

this.store.client(this.id).pause();
this.subscribed = false;
}
this.store.client(this.id).pause();
this.subscribed = false;
};

/**
Expand Down

0 comments on commit 191d68d

Please sign in to comment.