From fc9c7bc32587e67a17739946f576e8b714b87518 Mon Sep 17 00:00:00 2001 From: Rithesh Gowda Date: Thu, 22 Aug 2013 16:03:23 +0900 Subject: [PATCH] added check for listener validation Change-Id: I8c4b40d14166207f0447222a6eaca2c0e5cb7b5c Signed-off-by: Rithesh Gowda --- src/app/FApp_AppControlManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/FApp_AppControlManager.cpp b/src/app/FApp_AppControlManager.cpp index a9d88e5..cd7d7eb 100644 --- a/src/app/FApp_AppControlManager.cpp +++ b/src/app/FApp_AppControlManager.cpp @@ -279,7 +279,7 @@ _AppControlManager::OnAppControlEventReceivedN(int reqId, int res, const IMap* p SysTryReturnVoidResult(NID_APP, pInfo != null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] request Id %d not found with args 0x%x", reqId, pArgs); - if (pInfo->pListener) + if (pInfo->pListener && (!__listenerList.Contains(pInfo->pListener))) { String aId = pInfo->providerId; String oId = pInfo->operationId; @@ -319,7 +319,7 @@ _AppControlManager::OnAppControlEventReceivedN(int reqId, int res, const IMap* p else { IAppControlResponseListener* pListener = dynamic_cast(pInfo->pListener); - if (pListener && (!__listenerList.Contains(pInfo->pListener))) + if (pListener) { _AppControlResponseEvent* pResponseEvent = null; int responseEventRequestId = RESPONSE_EVENT_REQID_MAGIC + reqId; -- 2.7.4