diff --git a/packages/flutter_tools/lib/src/commands/drive.dart b/packages/flutter_tools/lib/src/commands/drive.dart index 7e94ca518b..18581e2614 100644 --- a/packages/flutter_tools/lib/src/commands/drive.dart +++ b/packages/flutter_tools/lib/src/commands/drive.dart @@ -242,6 +242,7 @@ Future 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 startApp(DriveCommand command) async { } ); - if (command.device.supportsStartPaused) { + if (started && command.device.supportsStartPaused) { await delayUntilObservatoryAvailable('localhost', command.debugPort); }