summaryrefslogtreecommitdiff
path: root/src/up-daemon.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-14 16:19:10 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 16:19:10 +0200
commitd74e4a7243c000ff042d37e6fd6be880a4cc4fbb (patch)
treef8e98de34f6aec5833e0b1ef1683b70dbe495b06 /src/up-daemon.c
parent0ac5c13369be5937b618100484236459c1d8de42 (diff)
downloadupower-d74e4a7243c000ff042d37e6fd6be880a4cc4fbb.tar.gz
daemon: Don't emit changed signal in coldplug
We weren't emitting GObject signals in coldplug, no need to send out D-Bus signals either.
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r--src/up-daemon.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index f9425fc..220348c 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -396,12 +396,14 @@ up_daemon_emit_properties_changed (UpDaemon *daemon,
g_return_if_fail (UP_IS_DAEMON (daemon));
- /* emit */
- if (!daemon->priv->during_coldplug) {
- g_debug ("emitting changed");
- g_signal_emit (daemon, signals[SIGNAL_CHANGED], 0);
- }
+ if (daemon->priv->during_coldplug)
+ return;
+
+ /* GObject */
+ g_debug ("emitting changed");
+ g_signal_emit (daemon, signals[SIGNAL_CHANGED], 0);
+ /* D-Bus */
connection = dbus_g_connection_get_connection (daemon->priv->connection);
message = dbus_message_new_signal ("/org/freedesktop/UPower",
"org.freedesktop.DBus.Properties",