trigger login box on failure to gather mpd host info on startup
This commit is contained in:
parent
71427769de
commit
9ada1350ea
|
@ -3688,8 +3688,7 @@ empd_send_connect(void)
|
|||
if (p - h > PATH_MAX - 1)
|
||||
{
|
||||
fprintf(stderr, "MPD_HOST longer than 4096 chars? I don't believe you.\n");
|
||||
/* FIXME */
|
||||
error_o_doom();
|
||||
empd_empdd_is_connected_call(empd_proxy, empc_isconnected, NULL);
|
||||
return;
|
||||
}
|
||||
port = strtol(p + 1, NULL, 10);
|
||||
|
@ -3706,7 +3705,10 @@ empd_send_connect(void)
|
|||
else if (!stat("/run/mpd/socket", &st))
|
||||
h = "/run/mpd/socket";
|
||||
}
|
||||
empd_empdd_connect_call(empd_proxy, h ?: "", port, pass ?: "");
|
||||
if (h)
|
||||
empd_empdd_connect_call(empd_proxy, h ?: "", port, pass ?: "");
|
||||
else
|
||||
empd_empdd_is_connected_call(empd_proxy, empc_isconnected, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue