Fix when the same operator reported multiple times

This commit is contained in:
Denis Kenzior 2009-06-23 10:24:45 -05:00
parent 1ec714f49e
commit 8199937bb5
1 changed files with 4 additions and 5 deletions

View File

@ -896,11 +896,10 @@ static void operator_list_callback(const struct ofono_error *error, int total,
memcpy(op, &list[i], sizeof(struct ofono_network_operator));
n = g_slist_prepend(n, op);
network_operator_dbus_register(modem, op);
need_to_emit = TRUE;
if (network_operator_dbus_register(modem, op)) {
n = g_slist_prepend(n, op);
need_to_emit = TRUE;
}
}
}