From 62c5b8daa87bbb73bcb62cb2c62bdc22d020990a Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Sun, 3 Jan 2021 19:45:05 +0100 Subject: [PATCH] Do not fail if peers are found before links After discover peers, a miracle-sinkctl restart can lead to peers without links. Just ignore that --- src/ctl/ctl-wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctl/ctl-wifi.c b/src/ctl/ctl-wifi.c index 130c031..2e06e72 100644 --- a/src/ctl/ctl-wifi.c +++ b/src/ctl/ctl-wifi.c @@ -823,7 +823,7 @@ static int ctl_wifi_parse_peer(struct ctl_wifi *w, l = ctl_wifi_find_link_by_peer(w, label); if (!l) - return cli_EINVAL(); + return 0; r = ctl_peer_new(&p, l, label); if (r < 0)