aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-27 08:07:35 +0800
committerkumavis <aaron@kumavis.me>2017-01-27 08:07:35 +0800
commitdc86ddebb77fed06a2857ef7a6031a45724740a9 (patch)
tree2586faa712be1ef98b0d45d8edeed978d99ac4e0 /app
parenta14a25c423fc8f7c40ba0c1c440991dd8a52410f (diff)
downloadtangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar.gz
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar.bz2
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar.lz
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar.xz
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.tar.zst
tangerine-wallet-browser-dc86ddebb77fed06a2857ef7a6031a45724740a9.zip
background - graceful publicConfigStore connection teardown
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 347fa60dc..3e6ce0a2e 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -321,7 +321,9 @@ module.exports = class MetamaskController extends EventEmitter {
setupPublicConfig (outStream) {
pipe(
this.publicConfigStore,
- outStream
+ outStream,
+ // cleanup on disconnect
+ () => this.publicConfigStore.unpipe(outStream)
)
}