1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Merge pull request #998 from MetaMask/i960-port-stream-err

bugfix - portstream - dont wrap cb in try catch
This commit is contained in:
kumavis 2017-01-11 19:29:15 -08:00 committed by GitHub
commit cc5e9aca4f

View File

@ -51,11 +51,11 @@ PortDuplexStream.prototype._write = function (msg, encoding, cb) {
// console.log('PortDuplexStream - sent message', msg)
this._port.postMessage(msg)
}
cb()
} catch (err) {
// console.error(err)
cb(new Error('PortDuplexStream - disconnected'))
return cb(new Error('PortDuplexStream - disconnected'))
}
cb()
}
// util