If a specific app is not launched and is repeatedly scheduled in the boot sequencer,
there is a problem that the log is repeatedly output due to unnecessary monitoring.
This patch is prevents this case.
Change-Id: I06247152b7d0ffbb58fdcce710715a2a76eee481
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
}
void AppInfo::StartMonitoring() {
+ if (monitoring_)
+ return;
+
for (auto const& vconf : vconf_)
vconf->Listen();
for (auto const& path_exists : path_exists_)
path_exists->Start();
+
+ monitoring_ = true;
}
void AppInfo::StopMonitoring() {
+ if (!monitoring_)
+ return;
+
for (auto const& path_exists : path_exists_)
path_exists->Stop();
for (auto const& vconf : vconf_)
vconf->Ignore();
+
+ monitoring_ = false;
}
bool AppInfo::CanWait() {
time_t terminated_time_{};
bool end_timestamp_set_ = false;
std::string status_msg_;
+ bool monitoring_ = false;
};
} // namespace amd::boot_sequencer