Merge pull request #2811 from devoncarew/drive_start

don't wait for the observatory if the app didn't start
This commit is contained in:
Devon Carew
2016-03-21 13:45:21 -07:00

View File

@@ -242,6 +242,7 @@ Future<int> startApp(DriveCommand command) async {
return 1;
}
// TODO(devoncarew): We should remove the need to special case here.
if (command.device is AndroidDevice) {
printTrace('Building an APK.');
int result = await build_apk.build(command.toolchain, command.buildConfigurations,
@@ -274,7 +275,7 @@ Future<int> startApp(DriveCommand command) async {
}
);
if (command.device.supportsStartPaused) {
if (started && command.device.supportsStartPaused) {
await delayUntilObservatoryAvailable('localhost', command.debugPort);
}