Merge pull request #655 from MetaMask/FixPortStreamEnd

Fix port stream end bug
feature/default_network_editable
kumavis 8 years ago committed by GitHub
commit 54ecb09a20
  1. 3
      app/scripts/lib/port-stream.js

@ -30,8 +30,7 @@ PortDuplexStream.prototype._onMessage = function (msg) {
PortDuplexStream.prototype._onDisconnect = function () { PortDuplexStream.prototype._onDisconnect = function () {
try { try {
// this.end() this.push(null)
this.emit('close')
} catch (err) { } catch (err) {
this.emit('error', err) this.emit('error', err)
} }

Loading…
Cancel
Save