Skip to content

Commit

Permalink
Destroy client
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Oct 2, 2015
1 parent 694c046 commit 0c5f95f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ RingPop.prototype.destroy = function destroy() {
this.channel.topChannel.close();
}

if (this.client) {
this.client.destroy();
}

this.destroyed = true;
this.emit('destroyed');
};
Expand Down

0 comments on commit 0c5f95f

Please sign in to comment.