don't wait fot the observatory if the app didn't start

This commit is contained in:
Devon Carew
2016-03-21 09:22:53 -07:00
parent a7bdf9f553
commit 73d3acd5fd

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);
}