From 6462833bc4fcf792ccefb6a00e2ead438d6e3dd4 Mon Sep 17 00:00:00 2001 From: Vitaliy Cherepanov Date: Wed, 11 Oct 2017 11:36:54 +0300 Subject: [PATCH] manager: move stop ack message sending after stop instrumentation. Change-Id: I123a3f84bcf25e2319f5a273a983b54cd501c036 Signed-off-by: Vitaliy Cherepanov --- daemon/da_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/da_protocol.c b/daemon/da_protocol.c index 7395dd8..09f6155 100644 --- a/daemon/da_protocol.c +++ b/daemon/da_protocol.c @@ -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; -- 2.7.4