Fix bug for sending incorrect response for "cancel folder scanning" 35/239635/4
authorhj kim <backto.kim@samsung.com>
Tue, 28 Jul 2020 09:04:11 +0000 (18:04 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 29 Jul 2020 02:50:55 +0000 (11:50 +0900)
The media-scanner doesn't need to send response for "scanning cancel" request.
clients manage their own list of scanning.
for the cancellation request, if the request is on the request list,
a client regards it as success, of false.

Change-Id: I8968707b4326a5ee2e7f69edaa47c0d17cd61e85

src/scanner-v2/media-scanner-socket-v2.c

index 54873b53e9710e2674b6b54869712104db0249c7..4a02986005c94d25d887c58965ef3dea322c2a5b 100644 (file)
@@ -85,7 +85,6 @@ gboolean msc_receive_request(GIOChannel *src, GIOCondition condition, gpointer d
                break;
        case MS_MSG_DIRECTORY_SCANNING_CANCEL:
                msc_remove_dir_scan_request(recv_msg);
-               msc_send_result(MS_MEDIA_ERR_SCANNER_FORCE_STOP, recv_msg);
                g_free(recv_msg);
                break;
        default: