if US profiling have been started in kernel but we have some problems in
da_manager with start profiling we must stop profiling to avail accept
and proceed next start message
Change-Id: I2b542b98451498f8845d1243909529b9db6030ea
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
if (start_profiling() < 0) {
LOGE("cannot start profiling\n");
+ if (stop_all() != ERR_NO) {
+ LOGE("Stop failed\n");
+ write_msg_error("Stop failed");
+ }
goto send_ack;
}
return process_msg_start(&msg_control);
case NMSG_STOP:
sendACKToHost(msg->id, ERR_NO, 0, 0);
- if (stop_all() != ERR_NO)
+ if (stop_all() != ERR_NO) {
+ LOGE("Stop failed\n");
write_msg_error("Stop failed");
+ }
break;
case NMSG_CONFIG:
error_code = ERR_NO;