commit | 7771920d2e09716f8dd7304429c26efaa6252e75 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Tue Apr 17 14:09:21 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Tue Apr 17 14:36:33 2018 -0700 |
tree | 215d3a636a25f73e25b6a77faf74ab25bbe04430 | |
parent | ffe0c423ca0db093e587540ee18feb022f94205f [diff] |
adb: Distinguish betwen already-connected and connection failure This change returns a different value (-EALREADY) when a connection has already been established, as opposed to a real connection failure (which still returns -1). Bug: 74411879 Test: Opened a socket, tried to adb connect to it, got "failed to connect to localhost:1337" Change-Id: Ic216ddef7f28eb43ca750f9e51d068c077d54b07