Skip to content

Commit b847821

Browse files
comment fixes
1 parent 21aed3a commit b847821

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • base/cvd/cuttlefish/host/commands/cvd/cli/commands

base/cvd/cuttlefish/host/commands/cvd/cli/commands/start.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ Result<void> CvdStartCommandHandler::Handle(const CommandRequest& request) {
343343
auto [instance, group] =
344344
CF_EXPECT(selector::SelectInstance(instance_manager_, request));
345345

346-
auto config_path =
347-
group.AssemblyDir() + "/cuttlefish_config.json";
348-
if (FileExists(config_path)) {
349-
return LaunchSingleInstance(instance, group, request);
346+
if (instance.State() == cvd::INSTANCE_STATE_STOPPED) {
347+
CF_EXPECT(LaunchSingleInstance(instance, group, request));
348+
return {};
350349
} else {
351-
LOG(INFO) << "Group configuration does not exist on disk. Proceeding with normal group start.";
350+
VLOG(1) << "Instance is not in stopped state. Proceeding with "
351+
"normal group start.";
352352
}
353353
}
354354

0 commit comments

Comments
 (0)