bugfix - portstream - dont wrap cb in try catch

feature/default_network_editable
kumavis 8 years ago
parent b23a24f61d
commit 65ba9fc39e
  1. 4
      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

Loading…
Cancel
Save