mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
network: do not emit changed properties when bus connection is not ready
Prompted by #19212.
This commit is contained in:
parent
ecb4b08c2e
commit
a73f8e9f32
@ -854,7 +854,7 @@ int link_send_changed_strv(Link *link, char **properties) {
|
||||
assert(link->manager);
|
||||
assert(properties);
|
||||
|
||||
if (!link->manager->bus)
|
||||
if (!link->manager->bus || sd_bus_is_ready(link->manager->bus) <= 0)
|
||||
return 0;
|
||||
|
||||
p = link_bus_path(link);
|
||||
|
@ -339,7 +339,7 @@ int manager_send_changed_strv(Manager *manager, char **properties) {
|
||||
assert(manager);
|
||||
assert(properties);
|
||||
|
||||
if (!manager->bus)
|
||||
if (!manager->bus || sd_bus_is_ready(manager->bus) <= 0)
|
||||
return 0;
|
||||
|
||||
return sd_bus_emit_properties_changed_strv(
|
||||
|
Loading…
Reference in New Issue
Block a user