Changeset View
Changeset View
Standalone View
Standalone View
daemon/powerdevilcore.cpp
Context not available. | |||||
833 | 833 | | |||
---|---|---|---|---|---|
834 | void Core::onResumingFromIdle() | 834 | void Core::onResumingFromIdle() | ||
835 | { | 835 | { | ||
836 | if (m_isHandlingWakeup) { | ||||
837 | return; | ||||
838 | } | ||||
839 | m_isHandlingWakeup = true; | ||||
840 | | ||||
836 | // Wake up the actions in which an idle action was triggered | 841 | // Wake up the actions in which an idle action was triggered | ||
837 | std::for_each(m_pendingResumeFromIdleActions.cbegin(), m_pendingResumeFromIdleActions.cend(), | 842 | std::for_each(m_pendingResumeFromIdleActions.cbegin(), m_pendingResumeFromIdleActions.cend(), | ||
838 | std::mem_fn(&PowerDevil::Action::onWakeupFromIdle)); | 843 | std::mem_fn(&PowerDevil::Action::onWakeupFromIdle)); | ||
839 | 844 | | |||
840 | m_pendingResumeFromIdleActions.clear(); | 845 | m_pendingResumeFromIdleActions.clear(); | ||
846 | | ||||
847 | m_isHandlingWakeup = false; | ||||
841 | } | 848 | } | ||
842 | 849 | | |||
843 | void Core::onNotificationTimeout() | 850 | void Core::onNotificationTimeout() | ||
Context not available. |