diff options
author | JackLivio <jack@livio.io> | 2022-03-11 16:11:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 16:11:17 -0500 |
commit | cf9c3869d02b723d3aa74f6b0d25a6d3b810c061 (patch) | |
tree | 61672252ef869a47fc8f04602230e85716a46377 /src/components/application_manager/src/rpc_service_impl.cc | |
parent | c95f2f91b7af6be5adc387cc1f2aba463109f061 (diff) | |
download | sdl_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.cc | 2 |
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()); |