Move request info removing position 79/14079/1
authorHyunbin Lee <hyunbin.lee@samsung.com>
Tue, 3 Dec 2013 07:24:58 +0000 (16:24 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 23 Dec 2013 06:33:25 +0000 (15:33 +0900)
Change-Id: Ifd21eaabfb11698518c98b6b8817410ae5757370
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/app/FApp_SqlDataControlImpl.cpp

index ce5e2c5..b08789f 100644 (file)
@@ -409,11 +409,11 @@ _SqlDataControlImpl::SqlDataControlCallback(void* data, _AppArg* pArg, _AppArg*
                _SqlDataControlEvent* pSqlDataControlEvent = dynamic_cast< _SqlDataControlEvent* >(pReqInfo->GetEvent());
                SysTryCatch(NID_APP, pSqlDataControlEvent != null, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] invalid request info");
 
-               pDcMgr->RemoveRequestInfo(key);
-
                _SqlDataControlImpl* pDcImpl = pReqInfo->GetSqlDataControlImpl();
                SysTryCatch(NID_APP, pDcImpl != null, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] invalid request info");
+
                pDcImpl->__pRequestList->Remove(key);
+               pDcMgr->RemoveRequestInfo(key);
 
                // Remove the request from the queue
                SysLog(NID_APP, "Remove the request, req: %d", reqId);