commit | 56300c9d002ec9730b57709e1e2d2643eb02f45f | [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 | e261f6b41034f2190906e59c7a11475a6355048c [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