Skip to content

Commit 1b91897

Browse files
comment fixes
1 parent 4cb3d8d commit 1b91897

1 file changed

Lines changed: 6 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: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,13 @@ 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+
group.StartTime() != TimeStamp{}) {
348+
CF_EXPECT(LaunchSingleInstance(instance, group, request));
349+
return {};
350350
} else {
351-
LOG(INFO) << "Group configuration does not exist on disk. Proceeding with normal group start.";
351+
VLOG(1) << "Instance is not in stopped state. Proceeding with "
352+
"normal group start.";
352353
}
353354
}
354355

0 commit comments

Comments
 (0)