startup: always wait for UI with --embed, unless --headless also is supplied

This commit is contained in:
Björn Linse
2018-09-20 19:19:38 +02:00
parent 7f990741f7
commit 4da5cb38d3
13 changed files with 68 additions and 79 deletions

View File

@@ -432,7 +432,7 @@ uint64_t channel_from_stdio(bool rpc, CallbackReader on_output,
const char **error)
FUNC_ATTR_NONNULL_ALL
{
if (!headless_mode) {
if (!headless_mode && !embedded_mode) {
*error = _("can only be opened in headless mode");
return 0;
}