commit | 209049e8e57596a97e240a5a85008c69e3e04577 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Jul 25 17:21:49 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Jul 25 18:49:37 2018 -0700 |
tree | b931c61c3d490e394f21388063714c88cb1daa87 | |
parent | 21320187a119ec22048658842a9ea831636bba3e [diff] |
adb: fix register_socket_transport related double-closes. Multiple codepaths were closing the fd they passed into register_socket_transport on failure, which would close the fd itself. Switch things over to unique_fd to make it clear that we don't actually have to close on failure. Test: mma Change-Id: I2d9bdcb1142c24931d970f99ebdf9a8051daf05c