NativeDaemonConnector: fix doListCommand() to return *all* list elements
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -255,11 +255,7 @@ final class NativeDaemonConnector implements Runnable {
|
|||||||
String[] tok = line.split(" ");
|
String[] tok = line.split(" ");
|
||||||
int code = Integer.parseInt(tok[0]);
|
int code = Integer.parseInt(tok[0]);
|
||||||
if (code == expectedResponseCode) {
|
if (code == expectedResponseCode) {
|
||||||
if (tok.length !=2) {
|
rdata[idx++] = line.substring(tok[0].length() + 1);
|
||||||
throw new IllegalStateException(
|
|
||||||
String.format("Malformatted list entry '%s'", line));
|
|
||||||
}
|
|
||||||
rdata[idx++] = tok[1];
|
|
||||||
} else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
|
} else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
|
||||||
return rdata;
|
return rdata;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user