mirror of git://git.sysmocom.de/ofono
Fix when the same operator reported multiple times
This commit is contained in:
parent
1ec714f49e
commit
8199937bb5
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue