When user log off, amd tries to remove the app status of the list.
In this time, the problem occurs.
Change-Id: I551c472246f88138bf4e8c6bee3372905ff95d00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
else
_D("Watch fd doesn't exist - uid(%d)", uid);
- for (auto& app_status : app_status_list_)
+ auto iter = app_status_list_.begin();
+ while (iter != app_status_list_.end()) {
+ auto app_status = *iter;
+ iter++;
if (app_status->GetUID() == uid)
CleanUp(app_status);
+ }
}
int AppStatusManager::RegisterPID(int pid, const std::string& appid,