- when a requirement is satisfied during ContextDataRead()
Change-Id: Iad71212300aaa824e3dab3472268535ae1add16a
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
void ReqVerificationState::contextDataReady(ContextPublisher* pubs, void* userData)
{
- for (auto it = __reqInfos.begin(); it != __reqInfos.end(); ++it) {
- if ((*it).pubs != pubs)
+ for (auto it = __reqInfos.begin(); it != __reqInfos.end();) {
+ if ((*it).pubs != pubs) {
+ ++it;
continue;
+ }
- if (!(*((*it).req) <= pubs->getData()))
+ if (!(*((*it).req) <= pubs->getData())) {
+ ++it;
continue;
+ }
pubs->removeObserver(this);
- __reqInfos.erase(it);
+ __reqInfos.erase(it++);
}
if (__inspectAll())