bruns created this revision. Herald added projects: Frameworks, Baloo. Herald added subscribers: Baloo, kde-frameworks-devel. bruns requested review of this revision.
REVISION SUMMARY When the state defaults to AC-powered, the indexer may start some energy consuming tasks, only to stop these later when the pending DBus call finishes. Especially the content indexer can take a while to stop, until the current batch is finished. In case the DBus call fails AC-powered is assumed, to match the previous default. TEST PLAN unplug AC power start baloo_file -> the content indexer no longer processes its first batch REPOSITORY R293 Baloo BRANCH scheduler REVISION DETAIL https://phabricator.kde.org/D21672 AFFECTED FILES src/file/powerstatemonitor.cpp To: bruns Cc: kde-frameworks-devel, #baloo, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams