Currently, when a new UI client connects, we send all boot options to
all clients. This results in existing clients getting duplicate add
events.
Instead, we only want to send existing boot options to the new client.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
write_device_add_message(server, client, device->device);
list_for_each_entry(&device->boot_options, opt, list)
write_device_add_message(server, client, device->device);
list_for_each_entry(&device->boot_options, opt, list)
- discover_server_notify_boot_option_add(server,
+ write_boot_option_add_message(server, client,
}
waiter_register(server->waitset, client->fd, WAIT_IN,
}
waiter_register(server->waitset, client->fd, WAIT_IN,