summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resume_ctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/resume_ctrl.cpp')
-rw-r--r--src/components/application_manager/src/resume_ctrl.cpp9
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 19cad8013..983699e02 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_);