mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #655 from MetaMask/FixPortStreamEnd
Fix port stream end bug
This commit is contained in:
commit
54ecb09a20
@ -30,8 +30,7 @@ PortDuplexStream.prototype._onMessage = function (msg) {
|
||||
|
||||
PortDuplexStream.prototype._onDisconnect = function () {
|
||||
try {
|
||||
// this.end()
|
||||
this.emit('close')
|
||||
this.push(null)
|
||||
} catch (err) {
|
||||
this.emit('error', err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user