mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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:
commit
cc5e9aca4f
@ -51,11 +51,11 @@ PortDuplexStream.prototype._write = function (msg, encoding, cb) {
|
|||||||
// console.log('PortDuplexStream - sent message', msg)
|
// console.log('PortDuplexStream - sent message', msg)
|
||||||
this._port.postMessage(msg)
|
this._port.postMessage(msg)
|
||||||
}
|
}
|
||||||
cb()
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// console.error(err)
|
// console.error(err)
|
||||||
cb(new Error('PortDuplexStream - disconnected'))
|
return cb(new Error('PortDuplexStream - disconnected'))
|
||||||
}
|
}
|
||||||
|
cb()
|
||||||
}
|
}
|
||||||
|
|
||||||
// util
|
// util
|
||||||
|
Loading…
Reference in New Issue
Block a user