summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/subscribe_button_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/subscribe_button_request.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/subscribe_button_request.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/mobile/subscribe_button_request.cc b/src/components/application_manager/src/commands/mobile/subscribe_button_request.cc
index ece7c8332e..22bc57620a 100644
--- a/src/components/application_manager/src/commands/mobile/subscribe_button_request.cc
+++ b/src/components/application_manager/src/commands/mobile/subscribe_button_request.cc
@@ -85,9 +85,13 @@ void SubscribeButtonRequest::Run() {
app->SubscribeToButton(static_cast<mobile_apis::ButtonName::eType>(btn_id));
SendSubscribeButtonNotification();
- SendResponse(true, mobile_apis::Result::SUCCESS);
- app->UpdateHash();
+ const bool is_succedeed = true;
+ SendResponse(is_succedeed, mobile_apis::Result::SUCCESS);
+
+ if (is_succedeed) {
+ app->UpdateHash();
+ }
}
bool SubscribeButtonRequest::IsSubscriptionAllowed(