mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miraclectl: stop scan on link-removal
If a link is removed, stop any pending interactive scan-tracking. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
1b1000b254
commit
146cf0bdb0
1 changed files with 3 additions and 0 deletions
|
@ -1635,6 +1635,9 @@ static int filters_object_fn(sd_bus *bus,
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
|
if (!strcmp(link, scan_link))
|
||||||
|
cmd_scan_stop(true);
|
||||||
|
|
||||||
cli_printf("[" CLI_YELLOW "REMOVE" CLI_DEFAULT "] Link: %s\n",
|
cli_printf("[" CLI_YELLOW "REMOVE" CLI_DEFAULT "] Link: %s\n",
|
||||||
link);
|
link);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue