summaryrefslogtreecommitdiff
path: root/src/network/networkd-link-bus.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-05 17:59:40 +0100
committerTom Gundersen <teg@jklm.no>2015-02-05 18:02:42 +0100
commit4852e15970ec652b823bf568b398f730be1fe1a5 (patch)
treeb92d0b8fc0e06b8a14521454e32cca09b10940da /src/network/networkd-link-bus.c
parentb2086f601b313939db160aa028e66649ba81bd01 (diff)
downloadsystemd-4852e15970ec652b823bf568b398f730be1fe1a5.tar.gz
networkd: gracefully handle failure to emit signals when dbus is not connected
When we get kdbus we don't need these hackse.
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r--src/network/networkd-link-bus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c
index 645c47ae8c..f7eae87edd 100644
--- a/src/network/networkd-link-bus.c
+++ b/src/network/networkd-link-bus.c
@@ -108,6 +108,9 @@ int link_send_changed(Link *link, const char *property, ...) {
assert(link);
assert(link->manager);
+ if (!link->manager->bus)
+ return 0; /* replace with assert when we have kdbus */
+
l = strv_from_stdarg_alloca(property);
p = link_bus_path(link);