diff options
author | Ji-hoon Lee <dalton.lee@samsung.com> | 2022-06-14 21:26:38 +0900 |
---|---|---|
committer | Ji-hoon Lee <dalton.lee@samsung.com> | 2022-06-14 21:29:51 +0900 |
commit | 664415a536a59d0d949031dbb42c8cae36118d22 (patch) | |
tree | 12fbcd148f95a23369e458e93cbd3103445de371 | |
parent | 0b2f48a7cf50c60795a8e2c5fba0c93ba8a23ab0 (diff) | |
download | multi-assistant-service-664415a536a59d0d949031dbb42c8cae36118d22.tar.gz multi-assistant-service-664415a536a59d0d949031dbb42c8cae36118d22.tar.bz2 multi-assistant-service-664415a536a59d0d949031dbb42c8cae36118d22.zip |
Make default wakeup policy to choose the first wakeup event
Change-Id: I9c7ca76a001983198d6ffbb458911e28aceffac3
-rw-r--r-- | plugins/wakeup-manager/src/wakeup_policy_default.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/wakeup-manager/src/wakeup_policy_default.cpp b/plugins/wakeup-manager/src/wakeup_policy_default.cpp index ab8d01f..a7844ca 100644 --- a/plugins/wakeup-manager/src/wakeup_policy_default.cpp +++ b/plugins/wakeup-manager/src/wakeup_policy_default.cpp @@ -93,12 +93,8 @@ void CWakeupPolicyDefault::wakeup_candidate(mas_wakeup_event_info wakeup_info) mWakeupInfos.push_back(wrapper); if (nullptr == mTimer) { ecore_main_loop_thread_safe_call_async([](void* data) { - CWakeupPolicyDefault* policy = static_cast<CWakeupPolicyDefault*>(data); - if (!policy) return; - - Ecore_Timer* timer = ecore_timer_add(policy->get_delay(), timer_func, data); - MWR_LOGI("Adding timer : %f", policy->get_delay()); - policy->set_timer(timer); + /* Assume that choosing the first wakeup event is the default behavior */ + timer_func(data); }, this); } } |