Just update code 49/75449/2
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 20 Jun 2016 01:33:16 +0000 (10:33 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Mon, 20 Jun 2016 01:33:48 +0000 (18:33 -0700)
Change-Id: I08a0e239165b33c64d43869a26e0275bc356402d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-register.c
src/server/media-server-device-block.c

index 9f55549..d4a0a55 100755 (executable)
@@ -206,7 +206,7 @@ gboolean _read_socket(GIOChannel *src, GIOCondition condition, gpointer data)
                req_result.request_type = MEDIA_REQUEST_EXTRACT_COMPLETE;
        } else {
                MSAPI_DBG("The message is invalid!");
-               return FALSE;
+               return TRUE;
        }
 
        MSAPI_DBG("pid :%d", req_result.pid);
index 67033ec..76d3b85 100755 (executable)
@@ -76,8 +76,8 @@ int ms_usb_insert_handler(const char *mount_path, const char *mount_uuid)
        ms_connect_db(&handle, uid);
 
        if (mount_path != NULL && mount_uuid != NULL) {
-               uuid = strndup(mount_uuid, strlen(mount_uuid));
                /*CHECK DB HERE */
+               uuid = strndup(mount_uuid, strlen(mount_uuid));
                ret = ms_check_db_upgrade(handle, uid);
                if (ret != MS_MEDIA_ERR_NONE) {
                        MS_DBG_ERR("ms_check_db_upgrade failed");