diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-05-24 23:52:18 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-05-24 23:52:18 +0800 |
commit | db982cf795d30dd32b4722249daea9296430b5b9 (patch) | |
tree | 566c207dfa97963b4cbbb14c6cdb21507b67b49e /app | |
parent | e8288ad4bfaa5b65b23f0a03d0c036457a24893f (diff) | |
download | tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.gz tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.bz2 tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.lz tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.xz tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.tar.zst tangerine-wallet-browser-db982cf795d30dd32b4722249daea9296430b5b9.zip |
stop polling when switching networks
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/controllers/network.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/controllers/network.js b/app/scripts/controllers/network.js index 4fdd92921..c07f13b8d 100644 --- a/app/scripts/controllers/network.js +++ b/app/scripts/controllers/network.js @@ -53,6 +53,7 @@ module.exports = class NetworkController extends EventEmitter { this.providerInit = newInit this._provider.removeAllListeners() + this._provider.stop() this.provider = MetaMaskProvider(newInit) // apply the listners created by other controllers Object.keys(this._providerListeners).forEach((key) => { |