diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-05 00:58:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-05 00:58:07 +0200 |
commit | a567261a29b4e19c0c195240411b7562063d99f8 (patch) | |
tree | af4c229fcb9b96520dad8941188c225c031bfb73 /src/unit.c | |
parent | 552e4331bf165290eb02596355d9570c1ef9af47 (diff) |
dbus: send signals about jobs to the clients having created them unconditionally, and thus get rid of broadcast signals in most cases
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c index 8f5ae8af3f..8b5714838d 100644 --- a/src/unit.c +++ b/src/unit.c @@ -282,7 +282,8 @@ void unit_add_to_dbus_queue(Unit *u) { if (u->meta.load_state == UNIT_STUB || u->meta.in_dbus_queue) return; - if (set_isempty(u->meta.manager->subscribed)) { + /* Shortcut things if nobody cares */ + if (!bus_has_subscriber(u->meta.manager)) { u->meta.sent_dbus_new_signal = true; return; } |