GNOME Bugzilla – Bug 659204
power: excessive signal emissions
Last modified: 2011-09-16 08:25:40 UTC
reading the code, I notice that engine_recalculate_state emits at least 3 Changed signals, some of them in the middle of recalculating. Should just emit it once, when all the state is updated.
Good catch, thanks: commit 3da731eb4ed3f59191504b135128a5dc939795ff Author: Richard Hughes <richard@hughsie.com> Date: Fri Sep 16 09:24:14 2011 +0100 power: Do not emit multiple 'Changed' signals when recalculating We were issuing up to three changed signals, and always doing at least one when nothing had actually changed. Ensure we only send one signal, and only send that if something was different from before. Resolves https://bugzilla.gnome.org/show_bug.cgi?id=659204