[FIX] double start
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Mon, 28 Oct 2013 10:51:39 +0000 (14:51 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Mon, 28 Oct 2013 12:20:28 +0000 (16:20 +0400)
Change-Id: I877fa4fe9cedb0f4d5ed0cc2f31f66c8ef56f76d
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_protocol.c

index f57b1f3..9caf7ee 100644 (file)
@@ -994,6 +994,11 @@ static int process_msg_start(struct msg_buf_t *msg_control)
        struct msg_t *msg_reply;
        uint32_t serialized_time[2];
 
+       if (check_running_status(&prof_session.conf) == 1) {
+               LOGW("Profiling has already been started\n");
+               goto send_ack;
+       }
+
        if (!check_conf(&prof_session.conf)) {
                LOGE("wrong profile config\n");
                goto send_ack;