From 8b4300c79647bc6c9939d1a351ecfa138a4f6fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 8 Jan 2025 07:59:50 +0100 Subject: [PATCH] Bump liberty, check the connection while searching This just prevents immediate assertion failures. --- liberty | 2 +- nncmpp.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/liberty b/liberty index 75fc6f1..017cb1d 160000 --- a/liberty +++ b/liberty @@ -1 +1 @@ -Subproject commit 75fc6f1c374796f9e794297c3893089009b8772f +Subproject commit 017cb1d5702a32603810545cd74c1da65e35d12d diff --git a/nncmpp.c b/nncmpp.c index 08c5499..8f17d8d 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -3785,6 +3785,8 @@ static void search_on_changed (void) { struct mpd_client *c = &g.client; + if (c->state != MPD_CONNECTED) + return; size_t len; char *u8 = (char *) u32_to_u8 (g.editor.line, g.editor.len + 1, NULL, &len);