There is a bug about executing an application whil that is updating.
It causes by calling aul_status_update_v2(). When the application calls
the function, amd changes the status of the app info to 'norestart'.
This patch add an exception handling about the 'blocking' status.
If the status is 'blocking', amd does not set the 'norestart' status to
the app info.
Change-Id: I1c2d4d9da394d6afa2a8a5dc5672411a726edfa8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (app_info == nullptr) {
ret = -1;
} else {
- app_info->SetStatus("norestart");
+ if (app_info->GetStatus() == "blocking")
+ _W("Blocking status. appid(%s)", app_info->GetAppId().c_str());
+ else
+ app_info->SetStatus("norestart");
+
ret = 0;
}
} else {