The default service notifier is invoked even when the default
service has not been changed. This causes unnecessary dbus
signal traffic.
Fixes BMC#25030
static GSequence *service_list = NULL;
static GHashTable *service_hash = NULL;
static GSList *counter_list = NULL;
-
static unsigned int autoconnect_timeout = 0;
+static struct connman_service *current_default = NULL;
struct connman_stats {
connman_bool_t valid;
{
struct connman_service *service = __connman_service_get_default();
+ if (service == current_default)
+ return;
+
+ current_default = service;
+
__connman_notifier_default_changed(service);
}