aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-12 11:09:49 +0800
committerkumavis <aaron@kumavis.me>2017-01-12 11:09:49 +0800
commit65ba9fc39e8545785b08d949072405ab1c7a567a (patch)
tree0ebf98d7f5f110d131fbc0982c1bab3c64cd169a /app/scripts
parentb23a24f61da808825975722e5493644856680daf (diff)
downloadtangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar.gz
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar.bz2
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar.lz
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar.xz
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.tar.zst
tangerine-wallet-browser-65ba9fc39e8545785b08d949072405ab1c7a567a.zip
bugfix - portstream - dont wrap cb in try catch
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/port-stream.js4
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