Commit 73d3acd5 authored by Devon Carew's avatar Devon Carew

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

parent a7bdf9f5
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment