diff options
Diffstat (limited to 'src/components/application_manager/src/resume_ctrl.cpp')
-rw-r--r-- | src/components/application_manager/src/resume_ctrl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/application_manager/src/resume_ctrl.cpp b/src/components/application_manager/src/resume_ctrl.cpp index 19cad80138..983699e020 100644 --- a/src/components/application_manager/src/resume_ctrl.cpp +++ b/src/components/application_manager/src/resume_ctrl.cpp @@ -376,6 +376,7 @@ bool ResumeCtrl::RemoveApplicationFromSaved(const std::string& mobile_app_id) { void ResumeCtrl::Suspend() { LOG4CXX_AUTO_TRACE(logger_); + StopRestoreHmiLevelTimer(); StopSavePersistentDataTimer(); SaveAllApplications(); Json::Value to_save; @@ -443,6 +444,14 @@ void ResumeCtrl::StopSavePersistentDataTimer() { } +void ResumeCtrl::StopRestoreHmiLevelTimer() { + LOG4CXX_AUTO_TRACE(logger_); + if (restore_hmi_level_timer_.isRunning()) { + restore_hmi_level_timer_.stop(); + } +} + + bool ResumeCtrl::StartResumption(ApplicationSharedPtr application, const std::string& hash) { LOG4CXX_AUTO_TRACE(logger_); |