Handle error in connector.
Close handle and swap with dummy handle when read.result !== core.RESULT_FAILED_PRECONDITION.

BUG=716959

Review-Url: https://codereview.chromium.org/2842073003
Cr-Commit-Position: refs/heads/master@{#470069}


CrOS-Libchrome-Original-Commit: b3d75e896a9c8316dede96ed1ee608cce40d43ab
2 files changed
tree: 3d6e32362ace9cc264cefe2c111dae0f19d6a573
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/