Before insert the app status, amd checks whether the app status exists or not.
Change-Id: If8c79a0cad2deaff4a3e17f30fe860674c391f12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
}
void AppStatusManager::Insert(AppStatusPtr app_status) {
+ if (app_status == nullptr) return;
+
+ if (pid_map_.find(app_status->GetPID()) != pid_map_.end()) {
+ _E("Already exists. pid(%d), appid(%s)",
+ app_status->GetPID(), app_status->GetAppID().c_str());
+ return;
+ }
+
if (!app_status->IsStarting())
app_status->SetStartupTimer();