X Tutup
Skip to content

Commit 706875f

Browse files
committed
network: check that bus is ready at one more place
1 parent 098d42b commit 706875f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/network/networkd-dhcp-server-bus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ static int dhcp_server_emit_changed(Link *link, const char *property, ...) {
8181

8282
assert(link);
8383

84+
if (sd_bus_is_ready(link->manager->bus) <= 0)
85+
return 0;
86+
8487
path = link_bus_path(link);
8588
if (!path)
8689
return log_oom();

0 commit comments

Comments
 (0)
X Tutup