summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/rpc_service_impl.cc
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2022-03-11 16:11:17 -0500
committerGitHub <noreply@github.com>2022-03-11 16:11:17 -0500
commitcf9c3869d02b723d3aa74f6b0d25a6d3b810c061 (patch)
tree61672252ef869a47fc8f04602230e85716a46377 /src/components/application_manager/src/rpc_service_impl.cc
parentc95f2f91b7af6be5adc387cc1f2aba463109f061 (diff)
downloadsdl_core-cf9c3869d02b723d3aa74f6b0d25a6d3b810c061.tar.gz
Fix crash on shutdown during streaming (#3876)
* Fix crash on shutdown during streaming * Fix iterative erase
Diffstat (limited to 'src/components/application_manager/src/rpc_service_impl.cc')
-rw-r--r--src/components/application_manager/src/rpc_service_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/application_manager/src/rpc_service_impl.cc b/src/components/application_manager/src/rpc_service_impl.cc
index 36dcb335c1..a5e55dcd0e 100644
--- a/src/components/application_manager/src/rpc_service_impl.cc
+++ b/src/components/application_manager/src/rpc_service_impl.cc
@@ -228,8 +228,8 @@ bool RPCServiceImpl::ManageMobileCommand(
return true;
}
if (message_type == mobile_apis::messageType::notification) {
- request_ctrl_.AddNotification(command);
if (command->Init() && command->CheckPermissions()) {
+ request_ctrl_.AddNotification(command);
command->Run();
if (command->CleanUp()) {
request_ctrl_.RemoveNotification(command.get());