summaryrefslogtreecommitdiff
path: root/src/components/remote_control/src/remote_control_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/remote_control/src/remote_control_plugin.cc')
-rw-r--r--src/components/remote_control/src/remote_control_plugin.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/remote_control/src/remote_control_plugin.cc b/src/components/remote_control/src/remote_control_plugin.cc
index e5a073d15e..921fc3794c 100644
--- a/src/components/remote_control/src/remote_control_plugin.cc
+++ b/src/components/remote_control/src/remote_control_plugin.cc
@@ -321,9 +321,17 @@ ResourceAllocationManager& RemoteControlPlugin::resource_allocation_manager() {
}
void RemoteControlPlugin::OnApplicationEvent(
- functional_modules::ApplicationEvent event, const uint32_t application_id) {
+ functional_modules::ApplicationEvent event,
+ application_manager::ApplicationSharedPtr application) {
LOG4CXX_AUTO_TRACE(logger_);
- resource_allocation_manager_.OnApplicationEvent(event, application_id);
+ if (false == service()->IsRemoteControlApplication(application)) {
+ LOG4CXX_DEBUG(logger_,
+ "Application " << application->app_id()
+ << " has no remote control functionality."
+ << " Event will be ignored for RC plugin");
+ return;
+ }
+ resource_allocation_manager_.OnApplicationEvent(event, application);
}
void RemoteControlPlugin::OnPolicyEvent(functional_modules::PolicyEvent event) {