mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
Exit CLI if daemon is not available
This commit is contained in:
parent
f9a61faaa2
commit
c215f05d5d
2 changed files with 5 additions and 2 deletions
|
@ -566,7 +566,8 @@ void ctl_sink_free(struct ctl_sink *s)
|
||||||
free(s->session);
|
free(s->session);
|
||||||
free(s->url);
|
free(s->url);
|
||||||
sd_event_unref(s->event);
|
sd_event_unref(s->event);
|
||||||
g_hash_table_destroy(s->protocol_extensions);
|
if (s->protocol_extensions)
|
||||||
|
g_hash_table_destroy(s->protocol_extensions);
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -764,7 +764,9 @@ static int ctl_interactive(char **argv, int argc)
|
||||||
goto error;
|
goto error;
|
||||||
sink->protocol_extensions = protocol_extensions;
|
sink->protocol_extensions = protocol_extensions;
|
||||||
|
|
||||||
ctl_wifi_fetch(wifi);
|
r = ctl_wifi_fetch(wifi);
|
||||||
|
if (r < 0)
|
||||||
|
goto error;
|
||||||
|
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
r = cli_do(cli_cmds, argv, argc);
|
r = cli_do(cli_cmds, argv, argc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue