commit | 3f1650687f282d8805100d63cb51312db3be737d | [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 | 1833412eaffcf5c625545ca2fe3028055363f2bd | |
parent | 2f225f40aae8dd627206c083eb2b7dddf53ef2f8 [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