diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-10 20:33:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-10 23:41:03 +0200 |
commit | b170dd803d334234ad7edd0dc7bb34860832bc07 (patch) | |
tree | 04713570da905baefe7bb6cf6a1f18b704989d74 /src/core/dbus.c | |
parent | 6fa4853328e3d78d092172fa54effb7e785d0a85 (diff) |
core: while we are reloading don't suppress bus signals
While we are reloading we shouldn't suppress adding units to the bus
queue when there are no subscribers, simply because we might not have
deserialized the subscribers list yet. Hence, during reloading always
assume we have subscribers.
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r-- | src/core/dbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c index 5180d89b2c..c1bf25c69b 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -1379,6 +1379,12 @@ bool bus_has_subscriber(Manager *m) { assert(m); + /* If we are reloading then we might not have deserialized the + subscribers yet, hence let's assume that there are some */ + + if (m->n_reloading > 0) + return true; + SET_FOREACH(c, m->bus_connections_for_dispatch, i) if (bus_connection_has_subscriber(m, c)) return true; |