diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-01-12 11:29:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 11:29:15 +0800 |
commit | cc5e9aca4fa2a1e78c49be680405d93ac918bccf (patch) | |
tree | 0ebf98d7f5f110d131fbc0982c1bab3c64cd169a /app | |
parent | b23a24f61da808825975722e5493644856680daf (diff) | |
parent | 65ba9fc39e8545785b08d949072405ab1c7a567a (diff) | |
download | tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar.gz tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar.bz2 tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar.lz tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar.xz tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.tar.zst tangerine-wallet-browser-cc5e9aca4fa2a1e78c49be680405d93ac918bccf.zip |
Merge pull request #998 from MetaMask/i960-port-stream-err
bugfix - portstream - dont wrap cb in try catch
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/port-stream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/port-stream.js b/app/scripts/lib/port-stream.js index 6f4ccc6ab..607a9c9ed 100644 --- a/app/scripts/lib/port-stream.js +++ b/app/scripts/lib/port-stream.js @@ -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 |