1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

background - graceful publicConfigStore connection teardown

This commit is contained in:
kumavis 2017-01-26 16:07:35 -08:00
parent a14a25c423
commit dc86ddebb7

View File

@ -321,7 +321,9 @@ module.exports = class MetamaskController extends EventEmitter {
setupPublicConfig (outStream) {
pipe(
this.publicConfigStore,
outStream
outStream,
// cleanup on disconnect
() => this.publicConfigStore.unpipe(outStream)
)
}