RSA sync with private
[platform/core/messaging/msg-service.git] / plugin / mms_plugin / MmsPluginEventHandler.cpp
index 9caddf1..4b428ca 100755 (executable)
@@ -76,7 +76,8 @@ void MmsPluginEventHandler::handleMmsReceivedData(mmsTranQEntity *pRequest, char
                listener.pfMmsConfIncomingCb(&msgInfo, &pRequest->reqID);
 
                //MsgDeleteFile(pRetrievedFilePath + strlen(MSG_DATA_PATH)); // not ipc
-               remove(pRetrievedFilePath); // not ipc
+               if (remove(pRetrievedFilePath) != 0)
+                       MSG_DEBUG("remove fail");
                break;
 
        // received data is retrieve-conf
@@ -93,7 +94,8 @@ void MmsPluginEventHandler::handleMmsReceivedData(mmsTranQEntity *pRequest, char
                break;
 
        case eMMS_READREPORT_CONF:
-               remove(pRetrievedFilePath);
+               if (remove(pRetrievedFilePath) != 0)
+                       MSG_DEBUG("remove fail");
                break;
        default:
                break;