summaryrefslogtreecommitdiff
path: root/dbus-unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 16:32:07 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 16:32:07 +0200
commitf278026d21e2ded46f7f91152d60842525e74956 (patch)
tree5d1e22f332a64f807a0750a1902a6724f16c89db /dbus-unit.c
parent8b44eabff0dd0dcbee1af637bc7d9d2b9dfcd427 (diff)
dbus: connect to bus as soon as the special dbus service is around
Diffstat (limited to 'dbus-unit.c')
-rw-r--r--dbus-unit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus-unit.c b/dbus-unit.c
index 00374e7fad..4ce94e2f7e 100644
--- a/dbus-unit.c
+++ b/dbus-unit.c
@@ -278,7 +278,7 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusMessage *message
}
if (reply) {
- if (!dbus_connection_send(m->bus, reply, NULL))
+ if (!dbus_connection_send(m->api_bus, reply, NULL))
goto oom;
dbus_message_unref(reply);
@@ -363,7 +363,7 @@ void bus_unit_send_change_signal(Unit *u) {
goto oom;
}
- if (!dbus_connection_send(u->meta.manager->bus, m, NULL))
+ if (!dbus_connection_send(u->meta.manager->api_bus, m, NULL))
goto oom;
free(p);
@@ -405,7 +405,7 @@ void bus_unit_send_removed_signal(Unit *u) {
DBUS_TYPE_INVALID))
goto oom;
- if (!dbus_connection_send(u->meta.manager->bus, m, NULL))
+ if (!dbus_connection_send(u->meta.manager->api_bus, m, NULL))
goto oom;
free(p);