Skip to content

Commit 973ac89

Browse files
committed
check for connected devices properly
Takes into account the following case: * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached YT9110EF13 device Signed-off-by: Umair Khan <[email protected]>
1 parent d0eb315 commit 973ac89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processing/mode/android/Devices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public static List<String> list() {
293293

294294
// might read "List of devices attached"
295295
final String stdout = result.getStdout();
296-
if (!(stdout.startsWith("List of devices") || stdout.trim().length() == 0)) {
296+
if (!(stdout.contains("List of devices") || stdout.trim().length() == 0)) {
297297
System.err.println(ADB_DEVICES_ERROR);
298298
System.err.println("Output was “" + stdout + "”");
299299
return Collections.emptyList();

0 commit comments

Comments
 (0)