Skip to content

Commit

Permalink
clearSubscriptions fixed (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida authored and frozeman committed Sep 6, 2018
1 parent 3649dba commit 326e42f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/web3-shh/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ var Shh = function Shh() {
_this.net.setProvider.apply(_this, arguments);
};

this.clearSubscriptions = _this._requestManager.clearSubscriptions;

this.net = new Net(this.currentProvider);


[
new Subscriptions({
name: 'subscribe',
Expand Down Expand Up @@ -180,6 +177,10 @@ var Shh = function Shh() {
});
};

Shh.prototype.clearSubscriptions = function () {
this._requestManager.clearSubscriptions();
};

core.addProviders(Shh);


Expand Down

0 comments on commit 326e42f

Please sign in to comment.