summaryrefslogtreecommitdiffstats
path: root/discover/discover-server.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-07 16:48:41 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-07 16:53:30 +0800
commit64c7065659bd939564356d688dcd24c65e02d57f (patch)
treede5d81a91f63a48e9f1869c6eeb64e4164b4102d /discover/discover-server.c
parent1920721aa011923555d95fc3b6a4378064a991ca (diff)
downloadtalos-petitboot-64c7065659bd939564356d688dcd24c65e02d57f.tar.gz
talos-petitboot-64c7065659bd939564356d688dcd24c65e02d57f.zip
discover: Don't resend all options to all clients
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>
Diffstat (limited to 'discover/discover-server.c')
-rw-r--r--discover/discover-server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/discover/discover-server.c b/discover/discover-server.c
index 3f08152..ca20113 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -225,9 +225,8 @@ static int discover_server_process_connection(void *arg)
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,
opt->option);
-
}
waiter_register(server->waitset, client->fd, WAIT_IN,
OpenPOWER on IntegriCloud