From b4e56aa95d84c0c3bbf34a7627c90d9f3fec08e0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Sep 2009 20:58:01 +0200 Subject: [PATCH] screen_outputs: finish response in fill_outputs_list() --- src/screen_outputs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screen_outputs.c b/src/screen_outputs.c index a91f634..883e3c9 100644 --- a/src/screen_outputs.c +++ b/src/screen_outputs.c @@ -114,6 +114,9 @@ fill_outputs_list(struct mpdclient *c) while ((output = mpd_recv_output(c->connection)) != NULL) { g_ptr_array_add(mpd_outputs, output); } + + if (!mpd_response_finish(c->connection)) + mpdclient_handle_error(c); } static const char * -- 2.30.2