Regarding the MS_MSG_DIRECTORY_SCANNING_CANCEL request from the client, the scanner doesn't need to send a response for this task,
because client gets the result for this request by checking from its own request list.
Change-Id: If46eb7f0825ce9f19e8ba09c7588ec39f5eb94f7
msg = g_async_queue_pop(folder_extract_queue);
if ((strcmp(msg->msg, cancel_path) == 0) && (pid == msg->pid)) {
MS_DBG_WARN("Remove request. cancel path [%s]", cancel_path);
- if (msg->result) {
- msg->msg_type = MS_MSG_DIRECTORY_SCANNING_CANCEL;
- msc_send_result(MS_MEDIA_ERR_SCANNER_FORCE_STOP, msg);
- }
g_free(msg);
} else {
g_async_queue_push(temp_extract_queue, msg);
msg = g_async_queue_pop(scan_queue2);
MS_DBG_WARN("msg->msg[%.*s], msg->pid[%d]", MAX_MSG_SIZE, msg->msg, msg->pid);
if ((strcmp(msg->msg, cancel_path) == 0) && (pid == msg->pid)) {
- msg->msg_type = MS_MSG_DIRECTORY_SCANNING_CANCEL;
- msc_send_result(MS_MEDIA_ERR_SCANNER_FORCE_STOP, msg);
+ MS_DBG_WARN("Remove request. cancel path [%s]", cancel_path);
g_free(msg);
} else {
g_async_queue_push(temp_scan_queue, msg);
switch (recv_msg.msg_type) {
case MS_MSG_SCANNER_RESULT:
case MS_MSG_SCANNER_BULK_RESULT:
- case MS_MSG_DIRECTORY_SCANNING_CANCEL:
case MS_MSG_EXTRACTOR_COMPLETE:
MS_DBG_WARN("DB UPDATING IS DONE[%d]", recv_msg.msg_type);
ms_req_num--;