Skip to content

Commit

Permalink
service: Always call ipconfig notifier
Browse files Browse the repository at this point in the history
Always call the ipconfig notifier whether the code is waiting to
announce the service for the first time with ServicesChanged
signal or not.
  • Loading branch information
pfl authored and LaakkonenJussi committed Mar 12, 2021
1 parent 62ca0e8 commit a4aedf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connman/src/service.c
Expand Up @@ -2631,11 +2631,13 @@ static void settings_changed(struct connman_service *service,
{
enum connman_ipconfig_type type;

type = __connman_ipconfig_get_config_type(ipconfig);

__connman_notifier_ipconfig_changed(service, ipconfig);

if (!allow_property_changed(service))
return;

type = __connman_ipconfig_get_config_type(ipconfig);

if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
connman_dbus_property_changed_dict(service->path,
CONNMAN_SERVICE_INTERFACE, "IPv4",
Expand All @@ -2644,8 +2646,6 @@ static void settings_changed(struct connman_service *service,
connman_dbus_property_changed_dict(service->path,
CONNMAN_SERVICE_INTERFACE, "IPv6",
append_ipv6, service);

__connman_notifier_ipconfig_changed(service, ipconfig);
}

static void ipv4_configuration_changed(struct connman_service *service)
Expand Down

0 comments on commit a4aedf9

Please sign in to comment.