mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 16:31:54 +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->url);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -764,7 +764,9 @@ static int ctl_interactive(char **argv, int argc)
|
|||
goto error;
|
||||
sink->protocol_extensions = protocol_extensions;
|
||||
|
||||
ctl_wifi_fetch(wifi);
|
||||
r = ctl_wifi_fetch(wifi);
|
||||
if (r < 0)
|
||||
goto error;
|
||||
|
||||
if (argc > 0) {
|
||||
r = cli_do(cli_cmds, argv, argc);
|
||||
|
|
Loading…
Reference in a new issue