Code

screen_outputs: finish response in fill_outputs_list()
authorMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:58:01 +0000 (20:58 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:58:01 +0000 (20:58 +0200)
src/screen_outputs.c

index a91f634b1d499641ec021c82e2fe24f9f7878dfd..883e3c9a9a80886407747432aafe05863e504f98 100644 (file)
@@ -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 *