Skip to content

Commit

Permalink
Merge f5e1192 into e914ec3
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida committed Nov 28, 2019
2 parents e914ec3 + f5e1192 commit 3fd50ad
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/web3-core-requestmanager/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,13 @@ RequestManager.prototype.clearSubscriptions = function (keepIsSyncing) {
var _this = this;


// uninstall all subscriptions
Object.keys(this.subscriptions).forEach(function(id){
if(!keepIsSyncing || _this.subscriptions[id].name !== 'syncing')
_this.removeSubscription(id);
});
if (this.subscriptions) {
// uninstall all subscriptions
Object.keys(this.subscriptions).forEach(function(id){
if(!keepIsSyncing || _this.subscriptions[id].name !== 'syncing')
_this.removeSubscription(id);
});
}


// reset notification callbacks etc.
Expand Down

0 comments on commit 3fd50ad

Please sign in to comment.