1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

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
This commit is contained in:
Alberto Fanjul 2021-01-03 19:45:05 +01:00
parent 8d6530ebc9
commit 62c5b8daa8

View file

@ -823,7 +823,7 @@ static int ctl_wifi_parse_peer(struct ctl_wifi *w,
l = ctl_wifi_find_link_by_peer(w, label); l = ctl_wifi_find_link_by_peer(w, label);
if (!l) if (!l)
return cli_EINVAL(); return 0;
r = ctl_peer_new(&p, l, label); r = ctl_peer_new(&p, l, label);
if (r < 0) if (r < 0)