diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2019-05-22 17:40:15 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2019-05-22 17:40:15 -0400 |
commit | 08725d22256b7f2156ef1172142549325e2619c4 (patch) | |
tree | 265fd841fbf150a0b642a35bdd88871433258696 | |
parent | fd4a2c179efb74e1bc76d6b64a66a643b83f74be (diff) | |
download | sdl_core-08725d22256b7f2156ef1172142549325e2619c4.tar.gz |
Add missing check in App Service Command Factory
-rw-r--r-- | src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/app_service_mobile_command_factory.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/app_service_mobile_command_factory.cc b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/app_service_mobile_command_factory.cc index 4b4da5e3e9..795de4838e 100644 --- a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/app_service_mobile_command_factory.cc +++ b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/app_service_mobile_command_factory.cc @@ -111,9 +111,12 @@ app_mngr::CommandCreator& AppServiceMobileCommandFactory::buildCommandCreator( switch (function_id) { case mobile_apis::FunctionID::PublishAppServiceID: - return mobile_apis::messageType::request == message_type - ? factory.GetCreator<commands::PublishAppServiceRequest>() - : factory.GetCreator<commands::PublishAppServiceResponse>(); + if (app_mngr::commands::Command::CommandSource::SOURCE_MOBILE == source) { + return mobile_apis::messageType::request == message_type + ? factory.GetCreator<commands::PublishAppServiceRequest>() + : factory.GetCreator<commands::PublishAppServiceResponse>(); + } + break; case mobile_apis::FunctionID::OnAppServiceDataID: return app_mngr::commands::Command::CommandSource::SOURCE_MOBILE == source ? factory.GetCreator< |