Bump liberty, check the connection while searching
This just prevents immediate assertion failures.
This commit is contained in:
2
liberty
2
liberty
Submodule liberty updated: 75fc6f1c37...017cb1d570
2
nncmpp.c
2
nncmpp.c
@@ -3785,6 +3785,8 @@ static void
|
|||||||
search_on_changed (void)
|
search_on_changed (void)
|
||||||
{
|
{
|
||||||
struct mpd_client *c = &g.client;
|
struct mpd_client *c = &g.client;
|
||||||
|
if (c->state != MPD_CONNECTED)
|
||||||
|
return;
|
||||||
|
|
||||||
size_t len;
|
size_t len;
|
||||||
char *u8 = (char *) u32_to_u8 (g.editor.line, g.editor.len + 1, NULL, &len);
|
char *u8 = (char *) u32_to_u8 (g.editor.line, g.editor.len + 1, NULL, &len);
|
||||||
|
|||||||
Reference in New Issue
Block a user