Problem: If try to unregister registered model,
unable to find registered model because of key mismatch.
How: Use proper key token to find registered model
Change-Id: Ib66242a4532e6a5fd8ced8e232fea26672347880
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
m_mtxUnregisterContext.lock();
// if already exists
- if (m_requestedCallbackData.find(pSSMResource->name) != m_requestedCallbackData.end())
+ if (m_requestedCallbackData.find(pSSMResource->type) != m_requestedCallbackData.end())
{
- m_requestedCallbackData.erase(m_requestedCallbackData.find(pSSMResource->name));
+ m_requestedCallbackData.erase(m_requestedCallbackData.find(pSSMResource->type));
//and Call NextLayer
m_pContextExecutor->unregisterContext(callType, pSSMResource, this);