summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/application_manager/src/commands/mobile/end_audio_pass_thru_request.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/mobile/end_audio_pass_thru_request.cc b/src/components/application_manager/src/commands/mobile/end_audio_pass_thru_request.cc
index 2952688fae..af1df24b4b 100644
--- a/src/components/application_manager/src/commands/mobile/end_audio_pass_thru_request.cc
+++ b/src/components/application_manager/src/commands/mobile/end_audio_pass_thru_request.cc
@@ -50,12 +50,12 @@ void EndAudioPassThruRequest::Run() {
LOG4CXX_INFO(logger_, "EndAudioPassThruRequest::Run");
if (ApplicationManagerImpl::instance()->audio_pass_thru_flag()) {
+ ApplicationManagerImpl::instance()->StopAudioPassThruThread();
+
CreateHMIRequest(hmi_apis::FunctionID::UI_EndAudioPassThru,
smart_objects::SmartObject(smart_objects::SmartType_Map),
true, 1);
- ApplicationManagerImpl::instance()->StopAudioPassThruThread();
-
ApplicationManagerImpl::instance()->set_audio_pass_thru_flag(false);
} else {
SendResponse(false, mobile_apis::Result::REJECTED,