Fix : Register the callback again when resuming the download 43/12843/1
authorSunwook Bae <sunwook45.bae@samsung.com>
Wed, 4 Sep 2013 10:55:37 +0000 (19:55 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Mon, 25 Nov 2013 01:40:06 +0000 (10:40 +0900)
Change-Id: If59f62383d00127590ab41d44ac86ee27cb2e9c2
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
src/FCnt_DownloadManagerImpl.cpp

index 24915bd..f8cae5d 100644 (file)
@@ -474,6 +474,10 @@ _DownloadManagerImpl::Resume(RequestId reqId)
 {
        int ret = 0;
 
+       // Set the callback functions
+       result r = RegisterCallback((int)reqId);
+       SysTryReturnResult(NID_CNT, r == E_SUCCESS, E_SYSTEM, "The internal system service is not available.");
+
        // Resume the download request
        ret = download_start((int)reqId);
        SysTryReturnResult(NID_CNT, ret != DOWNLOAD_ERROR_INVALID_PARAMETER, E_INVALID_ARG, "There is no download request for the request.");