summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/resumption')
-rw-r--r--src/components/application_manager/src/resumption/resume_ctrl_impl.cc5
-rw-r--r--src/components/application_manager/src/resumption/resumption_data_processor.cc5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
index 3d22b8f987..adb8a812d9 100644
--- a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
+++ b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
@@ -411,6 +411,11 @@ bool ResumeCtrlImpl::StartResumption(ApplicationSharedPtr application,
return result;
}
+void ResumeCtrlImpl::HandleOnTimeOut(const int32_t app_id) {
+ LOG4CXX_AUTO_TRACE(logger_);
+ resumption_data_processor_.HandleOnTimeOut(app_id);
+}
+
bool ResumeCtrlImpl::StartResumptionOnlyHMILevel(
ApplicationSharedPtr application) {
// sync_primitives::AutoLock lock(resumtion_lock_);
diff --git a/src/components/application_manager/src/resumption/resumption_data_processor.cc b/src/components/application_manager/src/resumption/resumption_data_processor.cc
index 7a882660b2..994354fdae 100644
--- a/src/components/application_manager/src/resumption/resumption_data_processor.cc
+++ b/src/components/application_manager/src/resumption/resumption_data_processor.cc
@@ -76,6 +76,11 @@ bool ResumptionRequestIDs::operator<(const ResumptionRequestIDs& other) const {
function_id < other.function_id;
}
+void ResumptionDataProcessor::HandleOnTimeOut(const int32_t app_id) {
+ LOG4CXX_AUTO_TRACE(logger_);
+ RevertRestoredData(application_manager_.application(app_id));
+}
+
void ResumptionDataProcessor::on_event(const event_engine::Event& event) {
LOG4CXX_AUTO_TRACE(logger_);
const smart_objects::SmartObject& response = event.smart_object();