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:
parent
a14a25c423
commit
dc86ddebb7
@ -321,7 +321,9 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
setupPublicConfig (outStream) {
|
||||
pipe(
|
||||
this.publicConfigStore,
|
||||
outStream
|
||||
outStream,
|
||||
// cleanup on disconnect
|
||||
() => this.publicConfigStore.unpipe(outStream)
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user