manager: move stop ack message sending after stop instrumentation. 31/154931/2
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 11 Oct 2017 08:36:54 +0000 (11:36 +0300)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 11 Oct 2017 13:17:31 +0000 (16:17 +0300)
Change-Id: I123a3f84bcf25e2319f5a273a983b54cd501c036
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_protocol.c

index 7395dd8..09f6155 100644 (file)
@@ -1514,11 +1514,11 @@ int host_message_handler(struct msg_t *msg)
        case NMSG_START:
                return process_msg_start(&msg_control);
        case NMSG_STOP:
-               sendACKToHost(msg->id, ERR_NO, 0, 0);
                if (stop_all() != ERR_NO) {
                        LOGE("Stop failed\n");
                        write_msg_error("Stop failed");
                }
+               sendACKToHost(msg->id, ERR_NO, 0, 0);
                break;
        case NMSG_CONFIG:
 //             error_code = ERR_NO;